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.
Using the Windows interface
Using the command line
To add a resource record to a zone using the Windows interface
Open the DNS snap-in.
In the console tree, right-click the applicable zone, and then click Other New Records.
In Select a resource record type, select the type of resource record that you want to add.
Click Create Record.
In New Resource Record, enter the information necessary to complete the resource record.
After you specify all the necessary information for the resource record, click OK to add the new record to the zone.
Note
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 ServerName
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 (.).
/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 updated or removed manually.
/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.
RRTypeRRData
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 A
IPAddress
NS,CNAME,MB,MD,PTR,MF,MG,MR
HostName|DomainName
MX,RT,AFSDB
PreferenceServerName
SRV
PriorityWeightPortHostName
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
Value Description IPAddress
Specifies a standard IP address, for example, 255.255.255.255.
ipv6Address
Specifies a standard IPv6 address, for example, 1:2:3:4:5:6:7:8.
Protocol
Specifies the transmission protocol: UDP or TCP.
Service
Specifies a standard service, for example, domain, smtp.
HostName|DomainName
Specifies the FQDN of a resource record that is located in the DNS namespace.