Share via


Modify an Existing Resource Record

Applies To: Windows Server 2008

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

Membership in the Administrators group, 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).

Modifying an existing resource record

  • Using the Windows interface

  • Using a command line

To modify an existing resource record 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, click the applicable zone.

  3. In the details pane, right-click the resource record that you want to modify, and then click Properties.

  4. In Properties, edit the properties that can be modified.

    If necessary, you can view and modify advanced resource record properties with the DNS snap-in. To display advanced properties, on the View menu, click Advanced.

  5. When you have finished modifying the record, click OK.

Note

When advanced view options are enabled, you can modify additional settings for an existing resource record, such as its record-specific Time to Live (TTL).

To modify an existing resource record 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. Type the following command, and then press ENTER:

    dnscmd <ServerName> /RecordDelete <ZoneName> <NodeName> <RRType> <RRData> [/f]
    
  3. Type the following command, and then press ENTER:

    dnscmd <ServerName> /RecordAdd <ZoneName> <NodeName> [/Aging] [/OpenAcl] [<Ttl>] <RRType> <RRData>
    
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 (.).

/RecordDelete

Required. Deletes an existing resource record.

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

<RRType> <RRData>

Required. Specifies the type of resource record to add, followed by the data to be contained in the resource record. The following lists resource record types and the data that the resource record of each type contains.

A

<IPAddress>

NS,CNAME,MB,MD,PTR,MF,MG,MR

<HostName>|<DomainName

MX,RT,AFSDB

<Preference> <ServerName>

SRV

<Priority> <Weight> <Port> <HostName>

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>

/f

Specifies that the command is executed without asking for confirmation. If you omit this parameter, you are prompted to confirm the deletion of the resource record.