Automating Windows DNS Entries

Here’s a quick tip on how you can automate DNS records in Windows 2008 DNS server when you are dynamically provisioning systems that do not auto-register with DNS.


There is a handy utility, part of the Windows 2008 DNS Tools, that allows you to do this from any authenticated Windows 2008 Server that is part of the domain/zone.

To create an A record w/ PTR:


dnscmd <dnsserver> /RecordAdd  <zone> <hostname to add> /CreatePTR A <IP of Machine>


You can also remove the record:


dnscmd <dnsserver> /RecordDelete <zone> <hostname to remove A <IP of Machine>

Written by

April 5, 2012
Comments 0

Speak Your Mind



This site uses Akismet to reduce spam. Learn how your comment data is processed.