Back to product page

DnsQueryTypes Enumeration


These constants define query type to be used with QueryDNS method.

Remarks

"MX" means 'mail exchanger' and is used to determine hostnames responsible to receive email for requested domain. "A" query will retrieve IP address based on hostname, and "PTR" will retrieve hostname based on IP.

Possible values for DnsQueryTypes:

Constant Value Description
QueryMX 0 Sends MX query to DNS server.
QueryA 1 Sends A query to DNS server.
QueryPTR 2 Sends PTR query to DNS server.

Platforms

Windows