AddByServer method of the PS_DnsServerQueryResolutionPolicy class
Adds a query resolution policy to the DNS server by server.
Syntax
uint32 AddByServer(
[in] boolean PassThru,
[in] string ComputerName,
[in] string Name,
[in] string Fqdn,
[in] string ClientSubnet,
[in] string TimeOfDay,
[in] string TransportProtocol,
[in] string InternetProtocol,
[in] string Action,
[in] boolean ApplyOnRecursion,
[in] string ServerInterfaceIP,
[in] string QType,
[in] uint32 ProcessingOrder,
[in] string Condition,
[in] string RecursionScope,
[in] boolean Disable,
[out] DnsServerPolicy cmdletOutput
);
Parameters
-
PassThru [in]
-
true to return the current instance in the CmdletOutput parameter. The default is false.
-
ComputerName [in]
-
Specifies a DNS server. If you do not specify this parameter, the command runs on the local system. You can specify an IP address or any value that resolves to an IP address, such as a fully qualified domain name (FQDN), host name, or NETBIOS name.
-
Name [in]
-
The name of the policy.
-
Fqdn [in]
-
The fully-qualified domain name.
-
ClientSubnet [in]
-
Client subnet record name.
-
TimeOfDay [in]
-
Time of day criteria.
-
TransportProtocol [in]
-
Transport protocol criteria.
-
InternetProtocol [in]
-
Internet Protocol criteria
-
Action [in]
-
Action taken if policy is matched
-
ApplyOnRecursion [in]
-
true to apply on recursion; otherwise, false.
-
ServerInterfaceIP [in]
-
The server interface.
-
QType [in]
-
Query type.
-
ProcessingOrder [in]
-
The order in which the query will be processed.
-
Condition [in]
-
The condition of the policy.
And
Or
-
RecursionScope [in]
-
TBD
-
Disable [in]
-
true to disable; otherwise false.
-
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 |
|