MicrosoftDNS_ResourceRecord class

The MicrosoftDNS_ResourceRecord class represents the general properties of a DNS RR.

The following syntax is simplified from MOF code.

Syntax

class MicrosoftDNS_ResourceRecord : CIM_LogicalElement
{
  string DnsServerName;
  string ContainerName;
  string DomainName;
  string OwnerName;
  uint16 RecordClass=1;
  uint32 TTL;
  uint32 TimeStamp;
  string RecordData;
  string TextRepresentation;
};

Members

The MicrosoftDNS_ResourceRecord class has these types of members:

Methods

The MicrosoftDNS_ResourceRecord class has these methods.

Method Description
CreateInstanceFromTextRepresentation Parses the RR in the TextRepresentation string, and with the input DNS Server and Container Names, defines, and instantiates a ResourceRecord object. The method returns a reference to the new object as an output parameter.
Qualifiers: None
GetObjectByTextRepresentation Retrieves an existing instance of the MicrosoftDns_ResourceRecord subclass, represented by the TextRepresentation string along with the DNS Server and Container Name.
Qualifiers: None

Properties

The MicrosoftDNS_ResourceRecord class has these properties.

ContainerName

Data type: string

Access type: Read-only

Indicates the name of the Container for the Zone, Cache, or RootHints instance that contains the RR.

DnsServerName

Data type: string

Access type: Read-only

Indicates the FQDN or IP address of the DNS Server that contains the RR.

DomainName

Data type: string

Access type: Read-only

Represents the FQDN of the Domain that contains the RR. This property may contain the strings \..Cache\ or \..RootHints\ if the internal cache or RootHints contain the RR, respectively.

OwnerName

Data type: string

Access type: Read-only

Owner name for the RR.

RecordClass=1

Data type: uint16

Access type: Read-only

**Windows Server 2003: **

This string represents the class of the Resource Record. Valid values include:

1: IN (Internet)

2: CS (CSNET)

3: CH (CHAOS)

4: HS (Hesiod)

RecordData

Data type: string

Access type: Read-only

Resource record data.

TextRepresentation

Data type: string

Access type: Read-only

Text representation of the entire RR.

TimeStamp

Data type: uint32

Access type: Read-only

Time at which the RR was last refreshed, expressed in elapsed hours since January 1, 1601, Greenwich Mean Time (GMT).

TTL

Data type: uint32

Access type: Read-only

Time, in seconds, that the RR can be cached by a DNS resolver.

Requirements

Requirement Value
Minimum supported client
None supported
Minimum supported server
Windows 2000 Server [desktop apps only]
Namespace
Root\MicrosoftDNS
MOF
Dnsprov.mof

See also

CreateInstanceFromTextRepresentation Method of the MicrosoftDNS_ResourceRecord Class

GetObjectByTextRepresentation Method of the MicrosoftDNS_ResourceRecord Class