How to manipulate Active Directory DNS via command line

If your DNS server is Microsoft Active Directory, you’ll need to install the DNS Server Tools in Windows 2008 that is a member of that domain.  To do this, go into Server Manager in that windows 2008 server, add the following feature:

Remote Server Administration Tools -> DNS Server Tools

Then you can use the following command to add A and PTR records into your DNS server:

 

dnscmd.exe <domain> /RecordAdd <domain> <hostname> /OpenAcl /CreatePTR A <ip address>

 

In NSH, you should be able to run the command above using “nexec -e <TARGET> <command>”

Written by

July 2, 2012
Comments 0

Speak Your Mind

*


*