AddByFileReverseLookupZone method of the PS_DnsServerStubZone class

Adds a DNS stub zone.

Syntax


uint32 AddByFileReverseLookupZone(
  [in]  boolean           LoadExisting,
  [in]  string            MasterServers[],
  [in]  string            NetworkId,
  [in]  string            ComputerName,
  [in]  string            ZoneFile,
  [in]  boolean           PassThru,
  [out] DnsServerStubZone cmdletOutput[]
);

Parameters

LoadExisting [in]

Loads an existing file for the zone. Otherwise, the method 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.

ZoneFile [in]

Indicates the name of the zone file.

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

 

 

Show: