Partager via


Set method of the PS_DnsServerForwarder class

Selects or resets IP addresses to which the DNS server forwards DNS queries when it cannot solve them locally.

Syntax

uint32 Set(
  [in]  string             IPAddress[],
  [in]  string             ComputerName,
  [in]  boolean            UseRootHint,
  [in]  uint32             Timeout,
  [in]  boolean            EnableReordering,
  [in]  boolean            PassThru,
  [out] DnsServerForwarder cmdletOutput
);

Parameters

IPAddress [in]

Specifies the forwarders in the order they need to be configured.

ComputerName [in]

Specifies the remote computer on which to execute the command.

UseRootHint [in]

If the UseRootHint parameter is used, the DNS server does not perform its own iterative queries. This means the DNS server forwards unresolved queries only to the DNS servers in the list and does not try iterative queries if the forwarders do not resolve it. It is more efficient to set one IP address as a forwarder for a DNS server. This cmdlet can be used for internal servers in a network to forward their unresolved queries to one DNS server that has an external connection.

Timeout [in]

Sets the number of seconds that the DNS server waits for a response from the forwarder. By default, this value is 5 seconds. Range = 0 to 15.

EnableReordering [in]

Enables or Disables the ability of the DNS Server to reorder Forwarders dynamically.

PassThru [in]

true to return the current instance in the CmdletOutput parameter. The default is false.

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_DnsServerForwarder