Home
Username:
Password:
DNS Tutorials

The Windows DNSCMD Utility / DNSCMD Features pt. 2




Visitors to VTC.com will be able to view all introductory videos for each training course.
Free Trial Members will gain access to first three chapters for each training course.
Full Access Members have full access to VTC.com’s entire library of video tutorials.


Learn More

Subtitles of the Movie

In the past two lessons, you learned how to view configuration and statistics using DNSCMD, as well as how to change server and zone configuration, and add or remove zones. You can also use DNSCMD to work with records. As covered in the last lesson, you can type: dnscmd/zoneprint, followed by a zone name to view all records in that zone. The command dnscmd/enumrecords has a similar function. Typing: dnscmd/enumrecords followed by a zone name and the @ symbol, will show you all records starting from the root of the zone. If you replace the @ symbol with a specific name, you can view that specific record. The dnscmd/recordadd command is used to add a new record to a zone. You need to type: dnscmd/recordadd followed by the zone, the record name, an optional ttl, the record type, and the data. For example dnscmd /recordadd domain.tld new record (for the record name) A for the record type, 192.168.10.42 for the data will add a new A record called a new record to the domain.tld zone. A ttl value could be added between the name and record type. Otherwise the default ttl for the zone is used. The data value varies depending on the data type. For example a host record takes an IP address while an MX record takes both a preference value and the name of the mail server. Records can be removed using the /record delete command. You need to type dnscmd/recorddelete followed by the zone, record name, record type and record data. This ensures the correct record is removed if there is more than one with the same name. The command - dnscmd/recorddelete domain.tld new record A 192.168.10.42 - would delete the record created in the last step. You are prompted to confirm the deletion so you don't delete the wrong record by accident. There is also a /node delete command. This removes all records with the specified name. The syntax is dnscmd/nodedelete followed by the zone and record name. Typing dnscmd /nodedelete domain.tld newrecord for example would delete the record created earlier as well as any other records sharing the name newrecord. These could be different record types, other records of the same type in a round robin configuration, or both. The node delete command will not delete a sub-domain with a specified name unless the /treeoption is specified. The node delete command also prompts for conformation before deleting the records.

Tutorial Information

Course: DNS
Author: Blair Rampling
SKU: 33444
ISBN: 1932072438
Release Date: 2003-07-15
Duration: 4.5 hrs / 70 lessons
Captions: Available on CD and Online University
Compatibility: Vista/XP/2000, OS X, Linux
QuickTime 7, Flash 8

VTC Sign up & Benefits

  • Unlimited Access
  • 98,729 Video Tutorials (23,265 free)
  • Video Available as Flash or QuickTime
  • Over 1026 Courses
  • $30 for One Month Access
  • Multi-User Discounts Available