Add a pointer (PTR) resource record to a reverse lookup zone
Applies To: Windows Server 2008
You can use this procedure to create a pointer (PTR) resource record in a reverse lookup zone in Domain Name System (DNS).
When you create a new host (A or AAAA) resource record, there is an option to create an associated pointer (PTR) resource record automatically. Pointer (PTR) resource records that are created automatically when you add a host (A or AAAA) resource record to a zone will be deleted automatically if the corresponding host (A or AAAA) resource record is deleted.
You can complete this procedure using either the DNS Manager snap-in or the dnscmd command-line tool.
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 pointer (PTR) resource record to a reverse lookup zone
Using the Windows interface
Using a command line
To add a pointer (PTR) resource record to a reverse lookup zone using the Windows interface
Open DNS Manager. To open DNS Manager, click Start, point to Administrative Tools, and then click DNS.
In the console tree, right-click the reverse lookup zone that you want to manage, and then click New Pointer (PTR).
In the Host IP number text box, type the host IP address in IP version 4 (IPv4) or IP version 6 (IPv6) format, depending on the type of reverse lookup zone.
In the Host name text box, type the fully qualified domain name (FQDN) for the DNS host computer for which this pointer record is to be used to provide reverse lookup (address-to-name resolution).
As an option, you can click Browse to search the DNS namespace for hosts that have host (A or AAAA) resource records already defined.
Click OK to add the new record to the zone.
To add a pointer (PTR) resource record to a reverse lookup zone using a command line
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.
At the command prompt, type the following command, and then press ENTER:
dnscmd <ServerName> /RecordAdd <ZoneName> <NodeName> [/Aging] [/OpenAcl] [<Ttl>] PTR <HostName>|<DomainName>
Parameter | Description |
---|---|
dsncmd |
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 |
/RecordAdd Required. Adds a new resource record. |
<ZoneName> |
Required. Specifies the 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 zone name or @, which specifies the zone's root node. |
/Aging |
Specifies that this resource record is able to be aged and scavenged. If you use this parameter, this resource record is able to be aged and scavenged. If you do not use this parameter, 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. |
PTR |
Required. Specifies the resource record type. |
<HostName>|<DomainName> |
Required. Specifies the FQDN of a resource record in the DNS namespace. The host that you specify is used as the data for answering reverse lookups based on the address information that this pointer (PTR) resource record specifies. |
To view the complete syntax for this command, at a command prompt, type the following command, and then press ENTER:
dnscmd /RecordAdd /help