Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Enthusiast Zone > Networking > osx slow dns lookups

osx slow dns lookups
Thread Tools
Addicted to MacNN
Join Date: May 2001
Location: Atlanta, GA
Status: Offline
Reply With Quote
Feb 1, 2003, 11:31 AM
 
I'm having a problem with OSX whereas it is taking a VERY long time to resolve DNS lookups.

Now: Once it resolves an address for the first time it moves fast. (it caches addresses that it looks up.) BUT: That doesn't resolve the original hit.

I had this problem on an OS9 machine on the same network, which was resolved by manually coding the DNS addresses in reverse order. (Secondary DNS first.) This does not work for my OSX machine.

I was thinking that there was something wrong with the DNS servers, EXCEPT that I have several WinXP boxes on the same network that work just fine. (Very quick lookups.)

Any thoughts as to where I should be looking to tweak/fix this thing?
     
Mac Elite
Join Date: May 1999
Location: San Jose, CA
Status: Offline
Reply With Quote
Feb 1, 2003, 09:22 PM
 
How are you timing the DNS lookup? Just anecdotal observations in a browser, or at the command line?

Try running nslookup in a terminal window, and see how long it takes there.

You might find that your primary DNS server has a problem and the system is waiting for that to time out before rolling over to the secondary system.

If it runs quickly using nslookup in a terminal window, then it's not a problem with DNS per se. rather what the Mac is doing before it uses DNS.

Check the Directory Access app in /Applications/Utilities and turn off any lookup methods you're not using (e.g. LDAP). The system might be checking with these directory services before falling back to DNS.

One other troubleshooting option that might help is running a tcpdump in a terminal window when you experience the problem. Although somewhat hard to decypher, it might indicate what the Mac is doing - for example, if you see the DNS lookup packet go out to the DNS server, but a long paused before you see the reply, that would indicate a problem on the DNS server side and not with your Mac.
Gods don't kill people - people with Gods kill people.
     
   
Thread Tools
Forum Links
Forum 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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:20 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2