LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-21-2008, 09:57 PM   #1
noir911
Member
 
Registered: Apr 2004
Posts: 682

Rep: Reputation: Disabled
DNS time-out issue


I get timed out when I do nslookup for "unknown" hosts (ie. hosts that couldn't possibly be in my DNS cache). For example, if I do nslookup host.com, DNS starts thinking and I get an error ";; connection timed out; no servers could be reached" and if I do nslookup host.com again, I get the hostname resolved. My sendmail and squid proxy servers are all using this same DNS server and there's no problem there. Also, when I try to browse some unknown site, my browser keeps thinking for a few seconds (while trying to resolve the host->IP) before I get to connect to the site. My DNS server is running bind and the "port 53;" option is disabled because of the recent DNS vulnerability; so it randomizes ports.

Is this timeout behavior normal and should be expected?

Thanks.

Last edited by noir911; 09-21-2008 at 10:00 PM.
 
Old 09-21-2008, 10:08 PM   #2
kayasaman
Member
 
Registered: Sep 2008
Location: Under the bridge where proper engineers walkover
Distribution: Various Linux, Solaris, BSD, Cisco
Posts: 443

Rep: Reputation: 32
This sounds like a problem I had just a few hours ago!

The DNS server that's connected to your network, do you have control over it or not?

It seems like your machine maybe trying to resolve to 2 DNS servers at once using the main DNS server as the secondary.

Maybe you can point your machine to only that server if more then one are configured or perhaps change to ISP DNS server.

What's in your /etc/network/interfaces file if your on a Debian system, I'm not sure where other distros keep there network interfaces files but if you know then please post the contents

Also whats in /etc/resolv.conf?
 
Old 09-21-2008, 10:13 PM   #3
kayasaman
Member
 
Registered: Sep 2008
Location: Under the bridge where proper engineers walkover
Distribution: Various Linux, Solaris, BSD, Cisco
Posts: 443

Rep: Reputation: 32
hmm.....

you might wana think about Desktop->Admin->Networking from Gnome if you run (if not use the KDE equivelent or whatever desktop manager you are working with) and having only the DNS server inside the DNS part if there are two DNS servers currently.

And also remove any search domains that maybe in there!
 
Old 09-21-2008, 11:49 PM   #4
noir911
Member
 
Registered: Apr 2004
Posts: 682

Original Poster
Rep: Reputation: Disabled
I only use one DNS server as my resolver on my client PC. My success to failure rate is 50/50; i.e. two out of four random sites time out.

Also, I have access to the DNS server so I can make changes there if need be.
 
Old 09-22-2008, 11:06 AM   #5
kayasaman
Member
 
Registered: Sep 2008
Location: Under the bridge where proper engineers walkover
Distribution: Various Linux, Solaris, BSD, Cisco
Posts: 443

Rep: Reputation: 32
Ok then post these results for me please:

Code:
ping -c 25 "server IP address"
--replace "server IP address" with the servers IP

and
Code:
nslookup "server name"
--replace "server name" with dns name of server eg. ns1.example.com
 
Old 09-22-2008, 11:57 AM   #6
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
If your network is high-latency, or you have an aggressive host firewall, it's possible that the application (or the connection state on the firewall) will time-out before you get the answer back. In the first case, usually the socket still receives the information any way (I've seen this happen) and it gets cached. In the second case, the response packets never get a chance to come in because the firewall gives up and tears down the state. In that case you just to query repeatedly until an answer comes back quickly enough for the firewall to allow it through.

Do you know what the time-out duration is for UDP states on your firewall? What sort of connection do you have? Do you have any forwarders configured in named.conf? How fast is the hardware that your DNS server is running on?
 
Old 09-22-2008, 12:14 PM   #7
kayasaman
Member
 
Registered: Sep 2008
Location: Under the bridge where proper engineers walkover
Distribution: Various Linux, Solaris, BSD, Cisco
Posts: 443

Rep: Reputation: 32
Yeah I agree with chort;

you can test your systems load with top and see the CPU, RAM, and load average states of your machine to see how much it is being 'loaded'.

Also with the ping command, depending on network traffic in your lacal subnet should be around 1 -> 10ms roughly...

Any thing over 20ms should be the norm of off site resolution.
 
  


Reply



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
DNS issue - DNS works perfect on server but not on any other computer jtneal Linux - Networking 3 03-15-2008 03:30 PM
help need it... issue with dns golpemortal Linux - Server 1 01-28-2008 07:40 AM
DNS issue or caching issue? AZDAVE Linux - Networking 7 10-02-2004 12:28 AM
DNS issue? lauram93 Linux - Networking 3 09-28-2004 11:47 PM
Dns Issue!!! treedstang Linux - Networking 0 06-04-2004 03:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:33 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