Share via


DnsServerResourceRecordDnsKey class

DNS Server Resource Record Data DnsKey.

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

Syntax

[ClassVersion("1.0.0"), dynamic, provider("DnsServerPSProvider"), AMENDMENT]
class DnsServerResourceRecordDnsKey : DnsServerResourceRecordData
{
  uint16  KeyTag;
  boolean SecureEntryPoint;
  boolean ZoneKey;
  string  KeyProtocol;
  string  CryptoAlgorithm;
  string  Base64Data;
  boolean Revoked;
  uint16  KeyFlags;
};

Members

The DnsServerResourceRecordDnsKey class has these types of members:

Properties

The DnsServerResourceRecordDnsKey class has these properties.

Base64Data

Data type: string

Access type: Read/write

Holds the public key material. The format depends on the algorithm of the key being stored.

CryptoAlgorithm

Data type: string

Access type: Read/write

Identifies the public key's cryptographic algorithm and determines the format of Base64Data property.

The possible values are.

RsaSha1 ("RsaSha1")

RsaSha1NSec3 ("RsaSha1NSec3")

RsaSha256 ("RsaSha256")

RsaSha512 ("RsaSha512")

ECDsaP256Sha256 ("ECDsaP256Sha256")

ECDsaP384Sha384 ("ECDsaP384Sha384")

KeyFlags

Data type: uint16

Access type: Read-only

The Key flag specifies properties of DnsKey resource record.

KeyProtocol

Data type: string

Access type: Read/write

Always set to DnsSec.

The possible values are.

DnsSec ("DNSSEC")

KeyTag

Data type: uint16

Access type: Read/write

The Key Tag field lists the key tag of the DnsKey Resource Record.

Revoked

Data type: boolean

Access type: Read-only

Is set to true if the DnsKey is revoked.

SecureEntryPoint

Data type: boolean

Access type: Read/write

Set to true if the DnsKey is a secure entry point to a signed zone. Set to false otherwise.

ZoneKey

Data type: boolean

Access type: Read/write

Set to true if the DnsKey is a zone key. Set to false otherwise.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2012
Namespace
Root\Microsoft\Windows\Dns
MOF
DnsServerPSProvider.mof
DLL
DnsServerPSProvider.dll

See also

DnsServerResourceRecordData

DnsServerPSProvider Provider