Add an A resource record to a 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 host address (A) resource record to a zone. Pointer (PTR) resource records that are created automatically when you add an A resource record to a zone are deleted automatically if the corresponding A resource record is deleted.
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 an A resource record to a zone
Using the Windows interface
Using the command line
To add an A resource record to a zone using the Windows interface
Open the DNS snap-in.
In the console tree, right-click the applicable forward lookup zone, and then click New Host (A).
In Name, type the Domain Name System (DNS) computer name for the new host.
In IP address, type the Internet Protocol (IP) address for the new host.
As an option, select the Create associated pointer (PTR) record check box to create an additional PTR resource record in a reverse zone for this host, based on the information that you enter in Name and IP address.
Click Add Host to add the new host (A) resource record to the zone.
Note
To open the DNS snap-in, click Start, point to Administrative Tools, and then click DNS.
To add an A resource record to a zone using the command line
At a command prompt, type the following command, and then press ENTER:
dnscmd ServerName**/RecordAdd** ZoneNameNodeName [/Aging] [/OpenAcl] [Ttl] A IPAddress
Value Description 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 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. The default TTL is defined in the start-of-authority (SOA) resource record.
A
Required. Specifies the resource record type of the record that you are adding.
IPAddress
Required. The IP address for the host.