Recent Posts

Topics

Archives


« | Main | »

Fixing Active Directory DNS (_msdcs, _sites, _tcp, _udp)

By Jesse | April 23, 2009

Have you ever accidentally deleted the AD DNS settings such as _msdcs, or installed AD and then needed to add a DNS server? How do you get AD to build it’s DNS settings. As you know AD is very tightly bound to DNS so if those settings are not there, DNS is probably going to cause a world of hurt moving forward.

Never fear, this can easily be fixed. To fix this, download the Windows Support Tools :

After installing the support tools, verify your dns on the server is set correctly.  Generally I set domain controllers to have their DNS boxes BLANK.. (ie they use themselves to resolve DNS.   If they cannot find the DNS entry they seek, they use the root servers to do recursive queries.).

To check dns, goto TCP/IP properties of your Local Area Connection.. and in the “Use  the following DNS server addresses:”  set this value to blank.  It should give you a message when you hit ok that it is using localhost as the DNS server.

Now goto the command prompt and in c:\program files\support tools run :

dcdiag /fix

then run

netdiag /fix

Finally run

ipconfig /flushdns
ipconfig /registerdns
net stop server
net start server

If you refresh your DNS you should now have all your entries in DNS that you need for AD to work properly..  The above command verify more than just fixing the DNS issues, but it doesnt hurt to run them and the dcdiag and netdiag will make sure your AD / DNS are the way they need to be.

One other note.   Net stop server stop more than just DNS .. it also stops Netlogon and Distributed File systems.   THESE SERVICES DO NOT START BACK UP ON THEIR OWN–   so after you’ve done the steps above I recommend either a quick reboot or if you cant do that go into service and start any automatic services that are stopped (such as netlogon and distributed file systems..   Your server should now work fine!

Now sit back and relax.


_______________________________________
PLEASE HELP BY BOOKMARKING OUR SITE...
[del.icio.us] [Digg] [StumbleUpon]

Topics: How To, Microsoft Windows | 3 Comments »

3 Responses to “Fixing Active Directory DNS (_msdcs, _sites, _tcp, _udp)”

  1. Alper AYDIN Says:
    February 16th, 2010 at 10:47 am

    thank you for your helping, its quatly good for me, your site. I saved my server with your DNS helping

  2. Mike Harraf Says:
    March 17th, 2010 at 5:02 pm

    Thanks you for the great step by step articel. It help me to solw my DNS issue. cheers,

  3. Jesse Says:
    March 22nd, 2010 at 2:03 pm

    What would you recommend setting this to then?, I suppose alternately you could set the DNS to no do recursive lookups…. But then if the server isnt authoratative, you have a problem. Alot of people put their ISP’s DNS settings, but this is wrong as these are supposed to list alternate DNS servers that are DNS peers.

    JV

Comments