Dns command, primary DNS server in domain

To change DNS from command line: dnscmd

List all A type records:

> dnscmd <dns-server> /EnumRecords <your domain> . /type A

Add a A type record:

> dnscmd <dns-server> /RecordAdd <your domain> docker01 A 192.168.1.235

More information for dnscmd:

> dnscmd /help

Set the primary DNS server in domain and auto update other DNS servers. Assume the primary DNS server is dns.my.ads.

win2k-dns

Written on November 11, 2016