Add a resource record to a DNS zone

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2

You can use the following procedure to add a resource record to a zone. You can perform this procedure by using the DNS snap-in or by using the Dnscmd command-line tool.

Administrative credentials

To perform this procedure, you must be a member of the Administrators group on the local computer, or you must have been delegated the appropriate authority. If the computer is joined to a domain, members of the Domain Admins group might be able to perform this procedure. As a security best practice, consider using the RunĀ as command to perform this procedure.

Adding a resource record to a zone

  • Using the Windows interface

  • Using the command line

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

  1. Open the DNS snap-in.

  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 necessary 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 open the DNS snap-in, click Start, point to Administrative Tools, and then click DNS.

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

  • At a command prompt, type the following command, and then press ENTER:

    dnscmd ServerName /RecordAddZoneNameNodeName [/Aging] [/OpenAcl] [Ttl] RRType RRData

    Value Description


    Required. Specifies the Domain Name System (DNS) host name of the DNS server. You can also type the Internet Protocol (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 updated or removed manually.


    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.


    Required. Specifies the type of resource record to add, followed by the data to be contained in the resource record.

    Resource record type Resource record data










    PrimSvr Admin Serial#\ Refresh Retry Expire MinTTL




    String [String]


    MailboxName ErrMailboxName


    Protocol IPAddress Service...


    MapFlag LookupTimeout CacheTimeout IPAddress...


    MapFlag LookupTimeout CacheTimeout RstDomainName

    Value Description


    Specifies a standard IP address, for example,


    Specifies a standard IPv6 address, for example, 1:2:3:4:5:6:7:8.


    Specifies the transmission protocol: UDP or TCP.


    Specifies a standard service, for example, domain, smtp.


    Specifies the FQDN of a resource record that is located in the DNS namespace.