Resource Record Classes

Resource records are the basic unit of information in DNS. A name server’s primary job is to respond to queries for resource records. Most people don’t realize they are generating queries for resource records with nearly every network-based operation they do, including accessing a web site, pinging a host, or logging into Active Directory.

The WMI DNS Provider fully supports querying and manipulating resource records. Tables Table 14-5 and Table 14-6 list the supported properties and methods for the MicrosoftDNS_ResourceRecord class, which implements a generic interface for resource records.

Table 14-5. MicrosoftDNS_ResourceRecord class properties

Property name

Property description

ContainerName

Name of the WMI container that holds the resource record (RR). This is usually the same as the name of the zone.

DnsServerName

Domain name of the name server that contains the RR.

DomainName

Domain name of the node that is associated with the RR.

OwnerName

Owner of the RR.

RecordClass

Class of the RR. 1 represents IN.

RecordData

Resource record data.

TextRepresentation

Textual representation of the RR. For example:

www.movie.edu. 1800 IN CNAME www1.movie.edu.

Timestamp

Time RR was last refreshed.

TTL

Time-to-live or maximum time a name server may cache the RR.

Table 14-6. MicrosoftDNS_ResourceRecord class methods

Method name

Method description

CreateInstanceFromTextRepresentation

Creates a new instance of a MicrosoftDNS_ResourceRecord ...

Get DNS on Windows Server 2003, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.