Fix Slow External DNS Resolution in Microsoft/Active Directory DNS Server

Filed under: Active Directory, Networking, Tech Stuff, Windows — Written by Chrissy on Wednesday, April 4th, 2007 @ 12:29 pm

Aw yaille! I just wrote up a whole explanatory blog post then lost it so this one will likely be brief... or not.

Recently, we found that one of our DNS servers was resolving external hostnames unacceptably slow -- about 5 seconds, give or take. The resolution was so slow, in fact, that all of the clients hopped on to the secondary DNS server thinking that the primary had gone down. After logging on to the server to troubleshoot, I could see that:

1. Pinging external hostnames worked well after the hostname resolved. So did traceroute.
2. Caching wasn't working at all
2. Other AD DNS servers on the network were resolving external hostnames quickly
3. The root servers were all there but I deleted and reloaded them anyway
    - Note: you can actually load root servers from a root server which is cool
4. Internal hostname resolution was extremely fast
5. A reboot didn't help (you may laugh but this has solved severe AD problems for me)

Because the other AD Servers were picking up the slack, I decided to come back to it later. I went out and had dinner with a friend then returned after a few hours. Upon logging back on to the Internets, an old network admin friend messaged me. I told him what I was seeing and he said he had the exact same issue a few months back. After a few minutes of trying to recall the solution, he asked "Have you checked your forwarders?" I'd glanced at them but went back to check again. And there it was.. an entry to a machine we'd recently taken down (long story..). I knew the moment I saw the IP that it was the problem. I removed the entry and noticed the forwarded query timeout was equal to *drumroll* 5 seconds.

Finding that solution was impossible on the Internet because of the super general terms: Slow DNS Resolution External Active Directory. Nothing really worked for me so hopefully this post will help others in the future.

2 Comments   -
  • Comment by hnieef | December 26, 2007 @ 7:34 pm

    where can i check forwarders?
    coz my client say very slow when login to AD server
    please help me

  • Comment by dan | April 5, 2008 @ 11:55 am

    Dude.

    Thanks. Been pulling my hair on that one. Installed on a temp IP space and then migrated the DC to a live IP. The old internal IP address was in there.

    Took it out of the forwarder and all is well.

Leave your comment