SetByZone method of the PS_DnsServerQueryResolutionPolicy class
Sets the DNS server name resolution policy by zone.
Syntax
uint32 SetByZone(
[in] boolean PassThru,
[in] string ComputerName,
[in] string ZoneScope,
[in] string ZoneName,
[in] string ClientSubnet,
[in] string Condition,
[in] string Fqdn,
[in] string InternetProtocol,
[in] string Name,
[in] uint32 ProcessingOrder,
[in] string QType,
[in] string ServerInterfaceIP,
[in] string TimeOfDay,
[in] string TransportProtocol,
[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.
-
ZoneScope [in]
-
Scope and weight of the zone.
-
ZoneName [in]
-
Name of the zone.
-
ClientSubnet [in]
-
Client subnet record name.
-
Condition [in]
-
The condition of the policy.
And
Or
-
Fqdn [in]
-
Fully-qualified domain name.
-
InternetProtocol [in]
-
Internet Protocol criteria.
-
Name [in]
-
Name of the policy to set.
-
ProcessingOrder [in]
-
The order in which the query will be processed.
-
QType [in]
-
Query type.
-
ServerInterfaceIP [in]
-
The server interface.
-
TimeOfDay [in]
-
Time of day criteria.
-
TransportProtocol [in]
-
Transport protocol criteria.
-
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 |
|
DLL |
|