Add a resource record to a zone

Updated: May 9, 2008

Applies To: Windows Server 2008

You can use this procedure to add a supported resource record to a Domain Name System (DNS) zone. For information about how to add specific, commonly used resource records, see the other topics in this section.

You can complete this procedure using either the DNS Manager snap-in or the dnscmd command-line tool.

The DNS Server service supports certain types of resource records that are not listed in DNS Manager, such as the domain alias (DNAME) resource record. You can add these records to a zone by using the dnscmd /RecordAdd command. For a complete listing of the resource records that you can add using this command, type dmscmd /RecordAdd /help at a command prompt.

Membership in Administrators, or equivalent, is the minimum required to complete this procedure. Review details about using the appropriate accounts and group memberships at Local and Domain Default Groups (

  1. Open DNS Manager. To open DNS Manager, click Start, point to Administrative Tools, and then click DNS.

  2. In the console tree, right-click the applicable zone, and then click Other New Records.

  3. In Select a resource record type, select the type of resource record that you want to add.

  4. Click Create Record.

  5. In New Resource Record, enter the information to complete the resource record.

  6. After you specify all the necessary information for the resource record, click OK to add the new record to the zone.

  1. Open a command prompt To open an elevated Command Prompt window, click Start, point to All Programs, click Accessories, right-click Command Prompt, and then click Run as administrator.

  2. At the command prompt, type the following command, and then press ENTER:

    dnscmd <ServerName> /RecordAdd <ZoneName> <NodeName> [/Aging] [/OpenAcl] [Ttl] <RRType> <RRData>


Parameter Description


The command-line tool for managing DNS servers.


Required. Specifies the DNS host name of the DNS server. You can also type the IP address of the DNS server. To specify the DNS server on the local computer, you can also type a period (.).


Required. Adds a new resource record.


Required. Specifies the fully qualified domain name (FQDN) of the zone.


Required. Specifies the FQDN of the node in the DNS namespace. You can also type the node name relative to the ZoneName or @, which specifies the zone's root node.


Specifies that this resource record is able to be aged and scavenged. If this command is used, this resource record is able to be aged and scavenged. If this command is not used, the resource record remains in the DNS database unless it is manually updated or removed.


Specifies that new records are open to modification by any user. Without this parameter, only administrators may modify the new record.


Specifies the Time To Live (TTL) setting for the resource record.

<RRType> <RRData>

Required. Specifies the type of resource record to add, followed by the data to be contained in the resource record. The following lists resource record types and the data that the resource record of each type contains.



<Preference> <ServerName>

<Priority> <Weight> <Port> <HostName>

<PrimSvr> <Admin> <Serial#> <Refresh> <Retry> <Expire> <MinTTL>


<String> [<String>]

<MailboxName> <ErrMailboxName>

<Protocol>< IPAddress> <Service>...

<MapFlag> <LookupTimeout> <CacheTimeout> <IPAddress>...

<MapFlag> <LookupTimeout> <CacheTimeout> <RstDomainName>


To view the complete syntax for this command, at a command prompt, type the following command, and then press ENTER:

dnscmd /RecordAdd /help 

Community Additions