O'Reilly logo

DNS on Windows Server 2003, 3rd Edition by Robbie Allen, Matt Larson, Cricket Liu

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

dnscmd Resource Record Commands

The dnscmd utility can query, create, and delete resource records using the /EnumRecords, /RecordAdd, /RecordDelete, and /NodeDelete commands. Each of these commands requires the same two parameters following the command option. The first is the name of the zone (ZoneName) you want to perform the task against. The second is the name of the node (NodeName) that corresponds to the owner of the target resource record (or records).

/EnumRecords <ZoneName> <NodeName> [/Type <RRType> <RRData>] [/Authority] [/Glue] [/Additional] [/Node | /Child | /StartChild <Child>] [/Continue | /Detail]

This command has several options that provide flexibility with enumerating resource records in a zone.[1] The only required parameters are ZoneName and NodeName. If you want to match all resource records, you can replace NodeName with @ instead of a specific node name. Here are the other optional parameters used to control the types of records enumerated and the information that is displayed for each.

/Type <RRType>

Restrict the records that are returned to a specific resource record type (RRType).

/Authority

Display only authoritative data.

/Glue

Display any glue information for each record.

/Additional

Display any additional information for each record.

/Node

Display only the records for the specified node.

/Child

Display only the child records of the specified node.

/StartChild <ChildNodeName>

Display only the records starting at a particular child node (i.e., subdomain) ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required