Partager via


SetByParameters method of the PS_DnsServerConditionalForwarder class

Sets DNS server Conditional Forwarder settings.

Syntax

uint32 SetByParameters(
  [in]  boolean                           UseRecursion,
  [in]  string                            MasterServers[],
  [in]  uint32                            ForwarderTimeout,
  [in]  string                            Name,
  [in]  string                            ComputerName,
  [in]  boolean                           PassThru,
  [out] DnsServerConditionalForwarderZone cmdletOutput
);

Parameters

UseRecursion [in]

Overrides the DNS server UseRecursion setting.

MasterServers [in]

Specifies the addresses of the master servers.

ForwarderTimeout [in]

Indicates the time, in seconds, a DNS server forwarding a query for the name under the forward zone waits for resolution from the forwarder before attempting to resolve the query itself. This parameter is applicable to the Forward zones only. Range = 0 to 15.

Name [in]

Specifies the name of the zone.

ComputerName [in]

Specifies the remote computer on which to execute the command.

PassThru [in]

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

cmdletOutput [out]

On return, contains an instance of the current object. This parameter returns a value only if PassThru is set to true.

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_DnsServerConditionalForwarder