Share via


Add a resource record to a zone

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.

Note

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 (https://go.microsoft.com/fwlink/?LinkId=83477).

Adding a resource record to a zone

  • Using the Windows interface

  • Using a command line

To add a resource record to a zone using the Windows interface

  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.

To add a resource record to a zone using a command line

  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

dnscmd

The command-line tool for managing DNS servers.

<ServerName>

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 (.).

/RecordAdd

Required. Adds a new resource record.

<ZoneName>

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

<NodeName>

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.

/Aging

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.

/OpenAcl

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

Ttl

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.

A

<IPAddress>

NS,CNAME,MB,MD,PTR,MF,MG,MR

<HostName>|<DomainName

MX,RT,AFSDB

<Preference> <ServerName>

SRV

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

SOA

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

AAAA

<Ipv6Address>

TXT,X25,HINFO,ISDN

<String> [<String>]

MINFO,RP

<MailboxName> <ErrMailboxName>

WKS

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

WINS

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

WINSR

<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 

Additional references