Freigeben über


SetByServer method of the PS_DnsServerQueryResolutionPolicy class

Sets the DNS server name resolution policy by server.

Syntax

uint32 SetByServer(
  [in]  boolean         PassThru,
  [in]  string          ComputerName,
  [in]  string          Name,
  [in]  string          TransportProtocol,
  [in]  string          TimeOfDay,
  [in]  string          RecursionScope,
  [in]  string          ServerInterfaceIP,
  [in]  string          QType,
  [in]  uint32          ProcessingOrder,
  [in]  string          ClientSubnet,
  [in]  string          Condition,
  [in]  string          InternetProtocol,
  [in]  string          Fqdn,
  [out] DnsServerPolicy cmdletOutput
);

Parameters

PassThru [in]

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

ComputerName [in]

Optional DNS server name.

Name [in]

Name of the policy to set.

TransportProtocol [in]

Transport protocol criteria.

TimeOfDay [in]

Time of day criteria.

RecursionScope [in]

TBD

ServerInterfaceIP [in]

The server interface.

QType [in]

The query type.

ProcessingOrder [in]

The order in which the query will be processed.

ClientSubnet [in]

Client subnet record name.

Condition [in]

The condition of the policy.

And

Or

InternetProtocol [in]

Internet Protocol criteria.

Fqdn [in]

Fully-qualified domain name.

cmdletOutput [out]

On return, contains a DnsServerPolicy. This parameter returns a value only if PassThru is set to true.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2016
Namespace
Root\Microsoft\Windows\Dns
MOF
DnsServerPsProvider.mof
DLL
DnsServerPSProvider.dll

See also

PS_DnsServerQueryResolutionPolicy