Using the DNSCmd Command-Line Utility

The DNSCmd utility is essentially a command-line version of the DNS Manager console. Installed as part of the Windows Server 2012 DNS Server role, this utility enables administrators to create zones, modify records, and perform other vital administrative functions via the command line. You can view the full functionality of this utility by typing dnscmd /? at the command line, as illustrated in Listing 10.3.

Listing 10.3. DNSCMD Command Options

Usage: DnsCmd <ServerName> <Command> [<Command Parameters>]<ServerName>:  IP address or host name    -- remote or local DNS server  .                          -- DNS server on local machine<Command>:  /Info                      -- Get server information  /Config                    -- ...

Get Windows Server® 2012 Unleashed now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.