Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

AddByFileForwardLookupZone method of the PS_DnsServerStubZone class

Adds a DNS stub zone.

Syntax


uint32 AddByFileForwardLookupZone(
  [in]   boolean LoadExisting,
  [in]   string MasterServers[],
  [in]   string ComputerName,
  [in]   string Name,
  [in]   string ZoneFile,
  [in]   boolean PassThru,
  [out]  string 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.

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.

Name [in]

Specifies the name of the zone.

ZoneFile [in]

Specifies name of the zone file. This parameter is only relevant for file-backed DNS.

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

Windows 8

Minimum supported server

Windows Server 2012

Namespace

\root\Microsoft\Windows\Dns

MOF

DnsServerPSProvider.mof

DLL

DnsServerPSProvider.dll

See also

PS_DnsServerStubZone

 

 

Community Additions

Show:
© 2014 Microsoft