Export (0) Print
Expand All

Delete a resource record from a zone

Updated: January 21, 2005

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2

To delete a resource record from a zone

Using the Windows interface

  1. Open DNS.

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

  3. In the details pane, right-click the resource record 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.

Notes

  • 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 Run as to perform this procedure.

  • To open DNS, click Start, click Control Panel, double-click Administrative Tools, and then double-click DNS.

  • PTR resource records are deleted automatically if the corresponding A resource record is deleted.

Using a command line

  1. Open Command Prompt.

  2. Type:

    dnscmdServerName/RecordDeleteZoneNameNodeNameRRTypeRRData [/f]

 

Value Description

dnscmd

Specifies the name of the command-line program.

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 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 (RR) to add, followed by the data to be contained in the resource record. For information about each resource record type see the Resource records reference.

 

Resource record type Resource record data

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

 

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

Important

  • If the parameter RRData is not specified, all resource records of the same type are deleted.

Notes

  • 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 Run as to perform this procedure.

  • To open a command prompt, click Start, point to All programs, point to Accessories, and then click Command prompt.

  • This procedure requires the Dnscmd Windows support tool. For information about installing Windows support tools, see Related Topics.

  • To view the complete syntax for this command, at a command prompt, type:

    dnscmd /RecordDelete /help

  • If the variable RRData is not specified, all resource record types matching the previous criteria are deleted.

  • PTR resource records are deleted automatically if the corresponding A resource record is deleted.

Formatting legend

 

Format Meaning

Italic

Information that the user must supply

Bold

Elements that the user must type exactly as shown

Ellipsis (...)

Parameter that can be repeated several times in a command line

Between brackets ([])

Optional items

Between braces ({}); choices separated by pipe (|). Example: {even|odd}

Set of choices from which the user must choose only one

Courier font

Code or program output

Information about functional differences

  • Your server might function differently based on the version and edition of the operating system that is installed, your account permissions, and your menu settings. For more information, see Viewing Help on the Web.

See Also

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

Community Additions

ADD
Show:
© 2014 Microsoft