Partager via


Add method of the PS_DnsServerResourceRecordPtr class

Adds a pointer (PTR) resource record to a reverse zone.

Syntax

uint32 Add(
  [in]  boolean                 AllowUpdateAny,
  [in]  string                  PtrDomainName,
  [in]  string                  Name,
  [in]  string                  ComputerName,
  [in]  string                  ZoneName,
  [in]  datetime                TimeToLive,
  [in]  boolean                 AgeRecord,
  [in]  boolean                 PassThru,
  [in]  string                  ZoneScope,
  [in]  string                  VirtualizationInstance,
  [out] DnsServerResourceRecord cmdletOutput
);

Parameters

AllowUpdateAny [in]

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

PtrDomainName [in]

Specifies the FQDN of a resource record located in the DNS namespace. The host you specify is used as the data for answering reverse lookups based on the address information specified by this pointer (PTR) resource record.

Name [in]

IPv4/IPv6 address of the record

ComputerName [in]

Specifies the remote computer on which to execute the command

ZoneName [in]

Specifies the name of the zone.

TimeToLive [in]

Specifies the Time-To-Live (TTL) setting for the resource record. (The default TTL is defined in SOA resource record). Indicates a length of time used by other DNS servers to determine how long to cache information for a record before expiring and discarding it.

AgeRecord [in]

Specifies that this resource record is able to be aged and scavenged. If this command is used, this resource record is able to be aged and scavenged. If this command is not used, the resource record remains in the DNS database unless it is manually updated or removed.

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.

VirtualizationInstance [in]

Unique identifier of the virtualization instance.

Windows Server 2012 R2 and Windows Server 2012: This parameter is unavailable prior to Windows Server 2016.

cmdletOutput [out]

Receives and embedded instance of the DnsServerResourceRecordPtr 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_DnsServerResourceRecordPtr