LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 10-20-2006, 05:26 PM   #1
jon23d
Member
 
Registered: May 2006
Location: Kennewick, WA - USA
Distribution: Ubuntu
Posts: 129

Rep: Reputation: 15
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.
 
Old 10-20-2006, 05:48 PM   #2
fordeck
Member
 
Registered: Oct 2006
Location: Utah
Posts: 520

Rep: Reputation: 61
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?
 
Old 10-20-2006, 05:51 PM   #3
jon23d
Member
 
Registered: May 2006
Location: Kennewick, WA - USA
Distribution: Ubuntu
Posts: 129

Original Poster
Rep: Reputation: 15
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.
 
Old 10-20-2006, 06:02 PM   #4
fordeck
Member
 
Registered: Oct 2006
Location: Utah
Posts: 520

Rep: Reputation: 61
Have you tried putting the good DNS servers in your /etc/resolv.conf file?
 
Old 10-20-2006, 06:19 PM   #5
jon23d
Member
 
Registered: May 2006
Location: Kennewick, WA - USA
Distribution: Ubuntu
Posts: 129

Original Poster
Rep: Reputation: 15
Yes, but they are still overwritten when the refresh goes through.
 
Old 10-20-2006, 07:00 PM   #6
binary_y2k2
Member
 
Registered: Jul 2005
Location: England, UK
Distribution: Ubuntu 8.04 Server, Kubuntu 12.04
Posts: 698
Blog Entries: 1

Rep: Reputation: 31
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
Code:
man dhclient.conf
for more advanced options.
 
Old 10-20-2006, 08:36 PM   #7
jon23d
Member
 
Registered: May 2006
Location: Kennewick, WA - USA
Distribution: Ubuntu
Posts: 129

Original Poster
Rep: Reputation: 15
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!
 
Old 10-21-2006, 07:01 PM   #8
fragos
Senior Member
 
Registered: May 2004
Location: Fresno CA USA
Distribution: Ubuntu 10.10
Posts: 1,466

Rep: Reputation: 51
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
help needed to setup a DNS server can anyone say how to configure a DNS server subha Linux - Networking 4 04-27-2012 11:50 PM
HoW To Prevent Accidently halting remote server.!!!!! topcat Linux - Software 4 11-27-2004 12:54 PM
DNS forced cache refresh n3tw0rk Linux - Networking 2 07-20-2004 10:41 AM
need help to set up caching only dns server to with bogus DNS entries ullas Linux - Networking 1 10-28-2003 01:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 10:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration