Windows Dev Center

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DnsServerResourceRecord class

DNS Server Resource Record.

The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties.

Syntax

[Dynamic, Provider("DnsServerPSProvider"), ClassVersion("1.0.0"), AMENDMENT]class DnsServerResourceRecord : DnsDomain
{
  string   DistinguishedName;
  string   HostName;
  string   RecordType;
  string   RecordClass;
  datetime TimeToLive;
  string   RecordData;
  datetime Timestamp;
};

Members

The DnsServerResourceRecord class has these types of members:

Properties

The DnsServerResourceRecord class has these properties.

DistinguishedName
Data type: string
Access type: Read-only

The Lightweight Directory Access Protocol (LDAP) name of the domain.

This property is inherited from DnsDomain.

HostName
Data type: string
Access type: Read-only

Host Name

RecordClass
Data type: string
Access type: Read-only

Class

IN (IN)
CSNET (CSNET)
CHAOS (CHAOS)
Hesiod (Hesiod )
RecordData
Data type: string
Access type: Read/write

Record Data

RecordType
Data type: string
Access type: Read-only

Record Type

A (A)
Ns (Ns)
Md (Md)
Mf (Mf)
CName (CName)
Soa (Soa)
Mb (Mb)
Mg (Mg)
Mr (Mr)
Null (Null)
Wks (Wks)
Ptr (Ptr)
HInfo (HInfo)
MInfo (MInfo)
Mx (Mx)
Text (Text)
Rp (Rp)
Afsdb (Afsdb)
X25 (X25)
Isdn (Isdn)
Rt (Rt)
Nsap (Nsap)
NsapPtr (NsapPtr)
Sig (Sig)
Key (Key)
Px (Px)
Gpos (Gpos)
AAAA (AAAA)
Loc (Loc)
Nxt (Nxt)
Eid (Eid)
NimLoc (NimLoc)
Srv (Srv)
Atma (Atma)
Naptr (Naptr)
Kx (Kx)
Cert (Cert)
A6 (A6)
DName (DName)
Sink (Sink)
Opt (Opt)
Ds (Ds)
Rrsig (Rrsig)
Nsec (Nsec)
DnsKey (DnsKey)
DhcId (DhcId)
Wins (Wins)
WinsR (WinsR )
Timestamp
Data type: datetime
Access type: Read-only

Time at which Resource Record was refreshed. Expressed in hours since January 1, 1601, Greenwich Mean Time (GMT)

TimeToLive
Data type: datetime
Access type: Read/write

Time To Live in seconds

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2012

Namespace

Root\Microsoft\Windows\Dns

MOF

DnsServerPSProvider.mof

DLL

DnsServerPSProvider.dll

 

 

Community Additions

Show:
© 2015 Microsoft