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

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.


Leave a Reply

Your email address will not be published. Required fields are marked *