.NET Compact Framework DNS Class
The DNS component is used to query DNS for record information.
For more information go to
The DNS component queries a DNS server for records as specified in RFC 1035 and other relevant RFCs. The component property QueryType indicates the record to be queried. Calling Query will initiate the query.
Once the query is complete, a single Response event will fire and the record properties will be filled. StatusCode is the server's success or fail code, and Status is a standard string interpretation of the code.
The records are contained in the Records properties . The programming interface is designed to allow a full walk of the records in the DNS response, including provisions for handling new record types.
The component operates synchronously by default (waits for a response before returning control to the caller), however, the component may also operate asynchronously (return control immediately), by setting Timeout to 0. Please refer to the Timeout property for more information.
Products that contain this component