2.2.15.1.1.6 DNS_RPC_CRITERIA_ENUM

The DNS_RPC_CRITERIA_ENUM enumeration specifies the various criteria that a DNS server needs to match during a DNS operation to have a successful DNS policy match. For more information, see section 3.1.8.2.

 typedef enum {
      DnsPolicyCriteriaSubnet,
      DnsPolicyCriteriaTransportProtocol,
      DnsPolicyCriteriaNetworkProtocol,
      DnsPolicyCriteriaInterface,
      DnsPolicyCriteriaFqdn,
      DnsPolicyCriteriaQtype,
      DnsPolicyCriteriaTime,
      DnsPolicyCriteriaEDNSSubnet,
      DnsPolicyCriteriaMax
 }DNS_RPC_CRITERIA_ENUM;

DnsPolicyCriteriaSubnet: This specifies that the criteria for match of a DNS policy is based on the client subnet record, derived from the IP address of a resolver [RFC1034] section 2.4 in a DNS Operation.

DnsPolicyCriteriaTransportProtocol: This specifies that the criteria for match of a DNS policy is based on the transport layer protocol (TCP or UDP) used to send a DNS query to the DNS server during a DNS operation.

DnsPolicyCriteriaNetworkProtocol: This specifies that the criteria for match of a DNS policy is based on the Internet protocol used (IPv4 or IPv6) to send a DNS query to the DNS server during a DNS operation.

DnsPolicyCriteriaInterface: This specifies that the criteria for match of a DNS policy is based on the IP address on which the DNS server receives the DNS query in a DNS operation.

DnsPolicyCriteriaFqdn: This specifies that the criteria for match of a DNS policy is based on the query name in the question section [RFC1034] section 3.7 of a DNS query, in a DNS operation.

DnsPolicyCriteriaQtype: This specifies that the criteria for match of a DNS policy is based on the QTYPE [RFC1035] section 3.2.3 of a DNS query in a DNS operation.

DnsPolicyCriteriaTime: This specifies that the criteria for match of a DNS policy is based on the time of day, in minutes, when the DNS server receives a DNS query during a DNS operation.

DnsPolicyCriteriaEDNSSubnet: Usage of this enum constant will fail the request with DNS_ERROR_POLICY_INVALID_SETTINGS (9974) (section 2.2.1.1.5).<91>

DnsPolicyCriteriaMax: This shows the maximum number of criteria type supported by DNS policy.