Partager via


AddByUnknown method of the PS_DnsServerResourceRecord class

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

Syntax

uint32 AddByUnknown(
  [in]  string                  ZoneName,
  [in]  string                  ComputerName,
  [in]  boolean                 PassThru,
  [in]  string                  ZoneScope,
  [in]  string                  VirtualizationInstance,
  [in]  uint16                  Type,
  [in]  string                  RecordData,
  [in]  boolean                 AgeRecord,
  [in]  boolean                 AllowUpdateAny,
  [in]  datetime                TimeToLive,
  [in]  string                  Name,
  [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.

Type [in]

Type for Unknown record.

RecordData [in]

The record to add. The record data may be in an object derived from the DnsServerResourceRecord class, such as DnsServerResourceRecordA or DnsServerResourceRecordTxt.

AgeRecord [in]

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

AllowUpdateAny [in]

true to allow any authenticated user to update DNS record with same owner name.

TimeToLive [in]

The Time To Live, in seconds.

Name [in]

The record Name.

cmdletOutput [out]

Receives an embedded instance of the DnsServerResourceRecord class. Note that the Record Data object is dependent on Record type.

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