Share via


Add method of the PS_DnsServerResourceRecordDnsKey class

Adds a DNSKEY record.

Syntax

uint32 Add(
  [in]  string                  Name,
  [in]  string                  CryptoAlgorithm,
  [in]  string                  ZoneName,
  [in]  datetime                TimeToLive,
  [in]  boolean                 AgeRecord,
  [in]  string                  Base64Data,
  [in]  string                  KeyProtocol,
  [in]  string                  ComputerName,
  [in]  boolean                 SecureEntryPoint,
  [in]  boolean                 ZoneKey,
  [in]  boolean                 PassThru,
  [in]  string                  ZoneScope,
  [out] DnsServerResourceRecord cmdletOutput
);

Parameters

Name [in]

The name of the resource record.

CryptoAlgorithm [in]

Cryptographic algorithm used for key generation.

ZoneName [in]

Name of the DNS zone where the record is added.

TimeToLive [in]

Specifies the life time of the record in DNS cache.

AgeRecord [in]

When specified creates a record with aging set.

Base64Data [in]

Specifies key data for this resource record.

KeyProtocol [in]

Specifies the key protocol for this resource record. The only value for this parameter is DnsSec.

ComputerName [in]

Specifies a DNS server. If you do not specify this parameter, the command runs on the local system. You can specify an IP address or any value that resolves to an IP address, such as a fully qualified domain name (FQDN), host name, or NETBIOS name.

SecureEntryPoint [in]

Specifies whether the key is a Secure entry point key or not as per RFC 3757.

ZoneKey [in]

Specifies whether this key will be used to sign the zone( either KSK or ZSK).

PassThru [in]

true to return the object that was modified by the method. By default, this method does not generate any output.

ZoneScope [in]

Name of the zone scope.

Windows Server 2012: Not supported.

cmdletOutput [out]

Receives and embedded instance of the DnsServerResourceRecordDnsKey class.

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

PS_DnsServerResourceRecordDnsKey