Share via


AddByADReverseLookupZone method of the PS_DnsServerStubZone class

Adds a DNS stub zone.

Syntax

uint32 AddByADReverseLookupZone(
  [in]  boolean           LoadExisting,
  [in]  string            MasterServers[],
  [in]  string            NetworkId,
  [in]  string            ComputerName,
  [in]  string            ReplicationScope,
  [in]  string            DirectoryPartitionName,
  [in]  boolean           PassThru,
  [out] DnsServerStubZone cmdletOutput[]
);

Parameters

LoadExisting [in]

Loads an existing file for the zone. Otherwise, the cmdlet creates default zone records automatically. This switch is relevant only for file-backed zones.

MasterServers [in]

Specifies an array of IP addresses of the master servers of the zone. You can use both IPv4 and IPv6.

NetworkId [in]

Specifies a network ID and prefix length for a reverse lookup zone.. Use the format A.B.C.D/prefix. Use the format A.B.C.D/prefix. Only class A, B, C, or D zones are created. If you specify a prefix that is between classes, the longer prefix that is divisible by 8 is used. For example, typing 10.2.10.0/23 for NetworkId will result in the creation of the 10.2.10.0/24 reverse lookup zone, but not the 10.2.11.0/24 reverse lookup zone. If you enter a prefix longer than /24, a /32 reverse lookup zone is created.

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.

ReplicationScope [in]

Specifies the directory partition on which to store the zone. FQDN: Specifies fully qualified domain name of the directory partition. domain: Stores the zone on the domain directory partition. forest: Stores the zone on the enterprise directory partition. legacy: Stores the zone on a legacy directory partition. Parameter valid only if it is AD based.

The possible values are.

Forest ("Forest")

The ForestDnsZone directory partition.

Domain ("Domain")

The domain directory partition.

Legacy ("Legacy")

A legacy directory partition

Custom ("Custom")

A custom directory partition. The DirectoryPartitionName property must also be specified.

DirectoryPartitionName [in]

Specifies a directory partition on which to store the zone. Applicable only when the ReplicationScope parameter is set to "Custom".

PassThru [in]

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

cmdletOutput [out]

Receives an embedded instance of the DnsServerStubZone 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_DnsServerStubZone