13.11. Creating and Deleting Resource Records
Problem
You want to create or delete resource records.
Solution
Using a graphical user interface
Open the DNS snap-in (dnsmgmt.msc).
Connect to the DNS Server you want to modify. In the left pane, right-click on DNS and select Connect to DNS Server. Select The following computer and enter the target server name. Click OK.
If you want to add or delete a record in a forward zone, expand the Forward Lookup Zone folder. If you want to add or delete a record for a reverse zone, expand the Reverse Lookup Zone folder.
To create a resource record, do the following:
In the left pane, right-click the zone and select the option that corresponds to the record type you want to create—e.g., New Host (A).
Fill in all required fields.
Click OK.
To delete a resource record, do the following:
In the left pane, click on the zone where the record is.
In the right pane, right-click on the record you want to delete and select Delete.
Click Yes to confirm.
Using a command-line interface
To add a resource record, use the following command:
> dnscmd<ServerName>
/recordadd<ZoneName>
<NodeName>
<RecordType>
<RRData>
The following example adds an A record in the rallencorp.com zone:
> dnscmd dc1 /recordadd rallencorp.com myhost01 A 19.25.52.25
To delete a resource record, use the following command:
> dnscmd<ServerName>
/recorddelete<ZoneName>
<NodeName>
<RecordType>
<RRData>
The following example deletes an A record in the rallencorp.com zone:
> dnscmd dns01 /recorddelete rallencorp.com ...
Get Windows Server Cookbook now with O’Reilly online learning.
O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.