Export (0) Print
Expand All

Delete a resource record

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 delete a resource record from a zone. Pointer (PTR) resource records are deleted automatically if the corresponding address (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.

Deleting a resource record

To delete a resource record using the Windows interface
  1. Open the DNS snap-in.

  2. In the console tree, click the applicable zone.

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

  4. When you are asked to confirm that you want to delete the selected resource record, click OK.

noteNote
To open the DNS snap-in, click Start, point to Administrative Tools, and then click DNS.

To delete a resource record using the command line
  • At a command prompt, type the following command, and then press ENTER:

    dnscmd ServerName /RecordDelete ZoneName NodeName RRType RRData [/f]

 

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 (.).

/RecordDelete

Required. Deletes a 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.

 

 

Resource record type Resource record data

A

IPAddress

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

HostName|DomainName

MX,RT,AFSDB

PreferenceServerName

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

 

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.

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

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft