Freigeben über


AddByZone method of the PS_DnsServerQueryResolutionPolicy class

Adds a query resolution policy to the DNS server by zone.

Syntax

uint32 AddByZone(
  [in]  boolean         PassThru,
  [in]  string          ComputerName,
  [in]  string          ZoneName,
  [in]  string          ZoneScope,
  [in]  string          Action,
  [in]  string          ClientSubnet,
  [in]  string          Condition,
  [in]  string          Fqdn,
  [in]  string          TimeOfDay,
  [in]  string          TransportProtocol,
  [in]  string          InternetProtocol,
  [in]  boolean         Disable,
  [in]  string          Name,
  [in]  uint32          ProcessingOrder,
  [in]  string          QType,
  [in]  string          ServerInterfaceIP,
  [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.

ZoneName [in]

The name of the zone.

ZoneScope [in]

The scope and weight of the zone.

Action [in]

Action taken if policy is matched.

ClientSubnet [in]

Client subnet record name.

Condition [in]

The condition of the policy.

And

Or

Fqdn [in]

The fully-qualified domain name.

TimeOfDay [in]

time of day criteria.

TransportProtocol [in]

Transport protocol criteria.

InternetProtocol [in]

Internet Protocol criteria.

Disable [in]

true to disable; otherwise false.

Name [in]

Name of the policy to add.

ProcessingOrder [in]

The order in which the query will be processed.

QType [in]

The query type.

ServerInterfaceIP [in]

The server interface.

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