Sunday, January 18, 2009

Set DNS BootMethod Using dnscmd Command

To set dns server to boot from "Active Directory" on command line, do the following

1. Assume the dns server is "dnsserver".
2. Run the below command to change bootmethod

dnscmd dnsserver /config /bootmethod 3

You can verify the bootmethod set properly by queering the reg key

"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DNS\BootMethod"








to set dns server to get boot information from registry, run the command

dnscmd dnsserver /config /bootmethod 2

No comments:

Post a Comment