Поделиться через


AddByTLSA method of the PS_DnsServerResourceRecord class

Adds the record to a specified zone in a DNS server.

Syntax

uint32 AddByTLSA(
  [in]  string                  ZoneName,
  [in]  string                  ComputerName,
  [in]  boolean                 PassThru,
  [in]  string                  ZoneScope,
  [in]  string                  VirtualizationInstance,
  [in]  boolean                 TLSA,
  [in]  string                  CertificateUsage,
  [in]  string                  MatchingType,
  [in]  string                  Selector,
  [in]  string                  CertificateAssociationData,
  [in]  string                  Name,
  [in]  boolean                 AgeRecord,
  [in]  boolean                 AllowUpdateAny,
  [in]  datetime                TimeToLive,
  [out] DnsServerResourceRecord cmdletOutput
);

Parameters

ZoneName [in]

Specifies the name of the zone.

ComputerName [in]

Specifies the remote computer on which to execute the command

PassThru [in]

If specified, returns the object or objects on which the operation was done.

ZoneScope [in]

Name of the zone scope.

VirtualizationInstance [in]

Unique identifier of the virtualization instance.

TLSA [in]

DNS Server Resource Record TLSA.

CertificateUsage [in]

Certificate usage

The possible values are.

CAConstraint ("CAConstraint")

ServiceCertificateConstraint ("ServiceCertificateConstraint")

TrustAnchorAssertion ("TrustAnchorAssertion")

DomainIssuedCertificate ("DomainIssuedCertificate")

MatchingType [in]

Matching Type

The possible values are.

ExactMatch ("ExactMatch")

Sha256Hash ("Sha256Hash")

Sha512Hash ("Sha512Hash")

Selector [in]

Selector

The possible values are.

FullCertificate ("FullCertificate")

SubjectPublicKeyInfo ("SubjectPublicKeyInfo")

CertificateAssociationData [in]

The certificate association data.

Name [in]

The record name.

AgeRecord [in]

If specified, creates the record with current timestamp so that the record can be scavenged.

AllowUpdateAny [in]

Allow any authenticated user to update DNS record with same owner name

TimeToLive [in]

Time To Live, in seconds

cmdletOutput [out]

A DnsServerResourceRecord object containing the following fields:

  • HostName
  • RecordType
  • RecordClass
  • TimeToLive
  • Timestamp
  • RecordData

Note that the RecordData field is dependent on RecordType.

Requirements

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

See also

PS_DnsServerResourceRecord