Friday, February 13, 2009

NodeDelete using dnscmd

To remove all resource records from a host on command line using dnscmd, do the following.

1. Assume the dns server is "dnsserver", zone name is "" and node name is "subdnsserver".

run the following to delete all resource records
dnscmd dnsserver /nodedelete /f

2. If the node to be delete is "subdomain", then the entire tree of records to be deleted

dnscmd dnsserver /nodedelete /tree /f


Design by infinityskins.blogspot