DNS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationDNS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 9th, 2004, 12:11 PM
jordantk jordantk is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 17 jordantk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Slow resolution

The problem I am having with my Redhat DNS is slow resolution. All devices can resolve addresses fine, but it takes 45 - 60 secs for a request. I found out, however, that if I append the domain that the resolution is practically instantaneous. For example:

"nslookup management" is slow

"nslookup management.domain" is fast

All resolution is local, so I don't want to resolve to the Internet or any other domains. I don't have any parent or slave zones either.

Reply With Quote
  #2  
Old July 9th, 2004, 12:22 PM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,195 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 15 h 53 m 4 sec
Reputation Power: 77
What does your resolv.conf look like.
__________________
Send me a private message if you would like me to setup your DNS for you for a price of your choosing. This is the preferred method if your DNS needs to be fixed/setup fast and you don't have the time to bounce messages back and forth on a forum. Also, check out these links:

Whois Direct | DNS Crawler | NS Trace | Compare Free DNS Hosts

Reply With Quote
  #3  
Old July 9th, 2004, 12:34 PM
jordantk jordantk is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 17 jordantk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
resolv.conf setup

This is the 'resolv.conf' on my nameserver. Resolving on this device takes less time, about 10 secs when using just the host name. However, it is still faster (instantaneous) if I use the fully-qualified domain.

-- resolv.conf --
domain lab.reno
nameserver 127.0.0.1
nameserver 172.24.200.200
options timeout:2
----------------

Thanks for your help

Reply With Quote
  #4  
Old July 9th, 2004, 12:44 PM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,195 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 15 h 53 m 4 sec
Reputation Power: 77
Try renaming the resolv.conf so that it isn't used. Then try nslookup again. Tell me if it's fast this time.

Reply With Quote
  #5  
Old July 9th, 2004, 12:50 PM
jordantk jordantk is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 17 jordantk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
the dns was unable to resolve when I renamed resolv.conf:

'management: Host name lookup failure'

Reply With Quote
  #6  
Old July 9th, 2004, 01:43 PM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,195 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 15 h 53 m 4 sec
Reputation Power: 77
Dunno then. I'm thinking this is a system configuration problem. Certainly hostname's aren't being sent to the DNS server. The DNS server only supports fully qualified domains. nslookup has to translate your hostname into a fully qualified domain before it can send the query. To do this it uses resolv.conf. I don't know much about resolv.conf so if there's a problem with it, I don't know what it is.

All I can suggest is to not use hostname ever. Always specify fully qualified domains in all commands and configurations.

Reply With Quote
  #7  
Old July 9th, 2004, 01:54 PM
jordantk jordantk is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 17 jordantk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unfortuantely, we use the hostnames to telnet into network devices. The dns is a convenience so that we don't have to type in/remember the entire IP. In other words, brevity is important.

Is there any way to append a specific domain to all outgoing dns requests? I only have one domain for all hosts. Perhaps a name-caching server?

Reply With Quote
  #8  
Old July 9th, 2004, 02:05 PM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,195 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 15 h 53 m 4 sec
Reputation Power: 77
Well tell ya what, let's try something else. type this into the commandline and paste for me what you get:

dig -x 127.0.0.1
dig -x 172.24.200.200

Reply With Quote
  #9  
Old July 9th, 2004, 02:12 PM
jordantk jordantk is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 17 jordantk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
debugging output

Here is the output:
-------------------
First Command
-------------------
[root@ns1 etc]# dig -x 127.0.0.1

; <<>> DiG 9.2.1 <<>> -x 127.0.0.1
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 5439
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;; QUESTION SECTION:
;1.0.0.127.in-addr.arpa. IN PTR

;; ANSWER SECTION:
1.0.0.127.in-addr.arpa. 86400 IN PTR localhost.

;; AUTHORITY SECTION:
0.0.127.in-addr.arpa. 86400 IN NS ns1.lab.reno.

;; ADDITIONAL SECTION:
ns1.lab.reno. 259200 IN A 172.24.200.200

;; Query time: 2 msec
;; SERVER: 172.24.200.200#53(172.24.200.200)
;; WHEN: Fri Jul 9 15:12:34 2004
;; MSG SIZE rcvd: 107

---------------------------
Second Command
---------------------------
[root@ns1 etc]# dig -x 172.24.200.200

; <<>> DiG 9.2.1 <<>> -x 172.24.200.200
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 56672
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;200.200.24.172.in-addr.arpa. IN PTR

;; Query time: 2 msec
;; SERVER: 172.24.200.200#53(172.24.200.200)
;; WHEN: Fri Jul 9 15:12:53 2004
;; MSG SIZE rcvd: 45

Reply With Quote
  #10  
Old July 9th, 2004, 02:36 PM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,195 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 15 h 53 m 4 sec
Reputation Power: 77
I see the IP address 172.24.200.200 fails to resolve to a domain. Fix that and see if nslookup continues to be slow. My suggestion is that you point the IP at lab.reno just like you have set in resolv.conf.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationDNS > Slow resolution


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT