LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-30-2009, 01:28 PM   #1
instrumentpilot
Member
 
Registered: May 2006
Posts: 34

Rep: Reputation: 2
NameServer Resolv Performance Problem


Hello folks, this morning I had a network performance problem that was not easy to troubleshoot. We had a DNS server go down and all my network connections from one linux server to another became incredibly slow.

Here it is: I had an /etc/resolv.conf file that looked like this
search mydomain.com
nameserver 192.168.1.1
nameserver 192.168.1.2
The 192.168.1.1 server went down. 192.168.1.2 took over, but it took 57 seconds to establish an ssh connection.

Can anyone help tell me why it didn't work faster? Is there something I can configure so lookup isn't wasting time with a dns server that is down? Even better would be a faster way for me to troubleshoot this.

Please help, I'd like to prevent this in the future.

P.S. I fixed the issue by reversing the order in /etc/resolv.conf

Michael Cunningham
RHCE
 
Old 07-30-2009, 07:53 PM   #2
Suncoast
Member
 
Registered: Apr 2009
Location: Largo, Florida
Distribution: Slackware
Posts: 208

Rep: Reputation: 35
Some options that may help in /etc/resolv.conf

Rotate through all listed servers-Mostly for load balancing
options rotate

options timeout:2
Default value is 5, range is 2 to 30

options attempts:2
Range starts at zero.

multiples are entered on one line:
options rotate timeout:2 attempts:1

For server to server connectivity that have static IP's, consider adding entries to the hosts file. And of course when a DNS server drops or is dropped out of service, change the DHCP DNS parameter to list the up server first.

edit: Then your help desk can quickly do a dhcp renewal for windows callers with ipconfig /renew

Of course these will only work on hosts with static IP's.

Edit: And there is a sticky here from the security forum on a recent bind issue.

Last edited by Suncoast; 07-31-2009 at 09:37 AM.
 
Old 07-31-2009, 07:03 AM   #3
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Hello Michael

Quote:
Please help, I'd like to prevent this in the future.
Suncoast's suggestions will help. You may also like to look at dnsmasq which will automatically choose the fastest responding DNS server.

Best

Charles
 
Old 07-31-2009, 10:21 AM   #4
instrumentpilot
Member
 
Registered: May 2006
Posts: 34

Original Poster
Rep: Reputation: 2
Thanks to both Suncoast and catkin. I'll look into both of these this morning.

Michael Cunningham
RHCE (with lots to learn)
 
  


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
Lighttpd performance problem + RAID performance problem in a high load site phaz0r Linux - Server 0 11-16-2008 08:52 AM
resolv.conf deletes nameserver entries Mirkridian Linux - Wireless Networking 1 02-19-2007 01:59 AM
router being added to resolv.conf as nameserver thatwouldbeme Linux - Networking 3 11-15-2006 12:44 PM
How to specify a default nameserver in /etc/resolv.con libregeek Linux - Networking 6 11-19-2005 11:41 AM
pppd: nameserver -> /etc/resolv.conf ?? tredegar Linux - Networking 6 03-21-2004 07:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:57 AM.

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