AddByFileReverseLookupZone method of the PS_DnsServerStubZone class

Adds a DNS stub zone.


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


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 for NetworkId will result in the creation of the reverse lookup zone, but not the 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.


Minimum supported client

None supported

Minimum supported server

Windows Server 2012







See also