For anyone who is experiencing slow DNS lookups...

I finally worked out what was wrong with my network config last night and thought I'd share it with everyone in a simgle post in the hope it'll help someone else.

I tried the BIND work around, but it wasn't all that much faster.

I tried disabling IPv6, but that didn't do much...

The solution?

In 'System Preferences' -> 'Network'
Go to configure the adaptor (Airport / Ethernet / etc)

In 'DNS Servers' where you'd normally specify the DNS servers given to you by your ISP... don't do this! As crazy as it sounds don't 🙂
Of course, if you're using newer routers you'd not be having this slow DNS lookup problem and specifying the ISPs DNS Servers would be appropriate... still

What you want to specify here is your ROUTER's IP:
eg. 192.168.0.1

With this simple modifcation you'll be fine. Why? You ask?

In Linux / OSX (I imagine in Unix as well) the way the lookups are carried out are different from Windows. I have other Windows computers on our network and they never had DNS lookup problems and they've been given the ISPs DNS IPs... anyway I think I'm talking out of my depth now heh.

This works!

Remember: Specify your router as the DNS Server!

Mac OS X (10.4.7)

Posted on Aug 12, 2006 8:51 PM

Reply
7 replies

Oct 1, 2006 11:31 AM in response to /dev/null

I've had this problem on a G4 PowerMac running Panther, and it still had it after a Tiger upgrade. I just replaced it with a Core Duo MacMini, 10.4.7, same problem of slow DNS lookups (i.e., slow initial start to loading a web page, then it goes quickly). Windows machines on the same subnet have no such problem. I've tried the various suggestions on various forums, none of which worked. I tried:

- turn off IPv6 (no help)
- directly enter my ISPs DNS servers (no help)
- manually configure both IP and DNS (no help, went back to DHCP)
- swear at the computer (a little help, mentally)

After some more reading, I tried resolving some addresses using the host command from the Terminal:

host -v www.apple.com 24.34.240.9

where the IP address is one of the DNS servers for my ISP (Comcast). I got a no server found message! I then tried the second DNS server in the Comcast list (found from my router), also no server found. Tried the third one in Comcast's list of DNS servers, and it worked. Entered it in System Preferences -> Network as a DNS server, and now web browsing is zippy! I verified that the two DNS servers that MacOS couldn't see are also down as far as Windows was concerned (using the nslookup command in windows).

What this tells me is that the OS X algorithm for handling unreachable or slow DNS servers is different from that in Windows. Maybe Windows remembers a bad experience with a DNS server and uses ones that it has success with, while OS X just keeps trying them in order, slowing timing them out until it finds one that works?

This could also explain many of the puzzling symptoms people have been seeing (things work some times, other times not; some people have luck specifying the DNS server manually, others don't). It all depends on what DNS servers got distributed to the Mac via DHCP, and how far down the list you have to go to find one that is responsive.

Anyone reading this forum with technical knowledge of both UNIX and Windows DNS lookup implementations? Is there some way to tweak in MacOS to make it perform more like Windows in this situation (like, maybe shortening the DNS server failure timeout)?

Oct 21, 2006 8:29 AM in response to /dev/null

After upgrading to OS 10.4.8, my internet connection slowed to a stand still. Before the upgrade everything worked fine, your trick of using the routers IP address in the DNS solved everything.

The internet is running at full speed again.

Thank you so much for posting this!

I also tried the OpenDNS trick above and it worked as well.

Thanks to both of you for posting!

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

For anyone who is experiencing slow DNS lookups...

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.