Ubuntu This forum is for the discussion of Ubuntu Linux. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-20-2006, 05:26 PM
|
#1
|
Member
Registered: May 2006
Location: Kennewick, WA - USA
Distribution: Ubuntu
Posts: 129
Rep:
|
halting dns server refresh
I noticed the other day that when I surf the web it is taking about a minute and a half for name resolution to take place, totally insane when I'm running 10mbps... So I call my ISP - the first person I talk to tells me that I need to call my computer manufacturer. I tell her that she's nuts and that is what my isp handles.
She escalates the call and I finally get through to somebody who just gives me an alternate ip for the servers. Everything is working beautifully now, except...
Every once in a while my network settings seem to refresh and I lose the changes. Is there a way to stop this from happening?
I'm using a cable modem connected directly to the computer.
|
|
|
10-20-2006, 05:48 PM
|
#2
|
Member
Registered: Oct 2006
Location: Utah
Posts: 520
Rep:
|
You are probably using DHCP through your ISP, which may also send out your DNS servers. So when your DHCP lease is up it renews with the default name servers. Have you noticed if the IP address change back to the originals when your DNS slows down?
|
|
|
10-20-2006, 05:51 PM
|
#3
|
Member
Registered: May 2006
Location: Kennewick, WA - USA
Distribution: Ubuntu
Posts: 129
Original Poster
Rep:
|
Yes, and I would like to stop this from happening. I don't ever get a new ip address, but the dns servers keep reverting.
|
|
|
10-20-2006, 06:02 PM
|
#4
|
Member
Registered: Oct 2006
Location: Utah
Posts: 520
Rep:
|
Have you tried putting the good DNS servers in your /etc/resolv.conf file?
|
|
|
10-20-2006, 06:19 PM
|
#5
|
Member
Registered: May 2006
Location: Kennewick, WA - USA
Distribution: Ubuntu
Posts: 129
Original Poster
Rep:
|
Yes, but they are still overwritten when the refresh goes through.
|
|
|
10-20-2006, 07:00 PM
|
#6
|
Member
Registered: Jul 2005
Location: England, UK
Distribution: Ubuntu 8.04 Server, Kubuntu 12.04
Posts: 698
Rep:
|
try adding this to /etc/dhcp3/dhclient.conf
Code:
interface "eth0" {
supersede domain-name-servers IP_OF_DNS1,IP_OF_DNS2,IP_OF_DNS3;
}
and have a look at for more advanced options.
|
|
|
10-20-2006, 08:36 PM
|
#7
|
Member
Registered: May 2006
Location: Kennewick, WA - USA
Distribution: Ubuntu
Posts: 129
Original Poster
Rep:
|
That did appear to work, but then for whatever reason I couldn't get any name resolution to take place. I'm certain this is the right path though, thank you!
|
|
|
10-21-2006, 07:01 PM
|
#8
|
Senior Member
Registered: May 2004
Location: Fresno CA USA
Distribution: Ubuntu 10.10
Posts: 1,466
Rep:
|
Linux comes configured by default to support IPv4 and IPv6 at the same. Its starts by trying IPv6 for DNS access and when that fails it trys IPv4. Basically, no body uses IPv6 on the open Internet and you have to wait for time out on IPv6 before every DNS access. Communication with the site you wanted will occur in IPv4 without all the useless handshaking. Disable IPv6 and your performance will improve. Also DNS response time varies by ISP. Comcast is amongst the fastest and Earthlink has a slow DNS process.
|
|
|
All times are GMT -5. The time now is 10:18 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|