Compartir a través de


Add a host (A or AAAA) resource record to a zone

Applies To: Windows Server 2008

You can use this procedure to add a new host (A or AAAA) resource record to a zone to associate a Domain Name System (DNS) name with an IP address.

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 host (A or AAAA) resource record to a zone

  • Using the Windows interface

  • Using a command line

To add a host (A or AAAA) 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 forward lookup zone to which you want to add the record, and then click New Host (A or AAAA).

  3. In Name, type the DNS computer name for the new host.

  4. In IP address, type the IP address for the new host. You can type the address in IP version 4 (IPv4) format (to add a host (A) resource record) or IP version 6 (IPv6) format (to add a host (AAAA) resource record).

  5. If you created a reverse lookup zone for a range of IP addresses that includes the IP address that you typed, you can select the Create associated pointer (PTR) record check box to create an additional pointer (PTR) resource record in a reverse zone for this host, based on the information that you entered in Name and IP address. For more information about reverse lookup zones, see Providing Reverse Lookup.

Additional considerations

  • 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.

To add a host (A or AAAA) 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>] {A | AAAA} <IPAddress>
    
Parameter Description

dsncmd

Manages 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 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 that you are adding an IP version 4 (IPv4) host (A) resource record type of record. <IPAddress> must be in the IPv4 format.

AAAA

Required. Specifies that you are adding an IP version 6 (IPv6) host (AAAA) resource record type of the record. <IPAddress> must be in the IPv6 format.

IPAddress

Required. The IP address for the host. The format depends on whether you are creating a host (A) resource record or a host (AAAA) resource record.

To view the complete syntax for this command, at a command prompt, type the following command, and then press ENTER:

dnscmd /RecordAdd /help