API Reference
Class
DnsWireResolve
Methods for performing DNS queries over various HTTP transports using raw wire format.
Inheritance
- Object
- DnsWireResolve
Methods
ResolveWireFormatGet(System.Net.Http.HttpClient client, System.String name, DnsClientX.DnsRecordType type, System.Boolean requestDnsSec, System.Boolean validateDnsSec, System.Boolean debug, DnsClientX.Configuration endpointConfiguration, System.Threading.CancellationToken cancellationToken) #Sends a DNS query in wire format over HTTP GET and returns the response.
Parameters
- client System.Net.Http.HttpClient
- The HttpClient used to send the request.
- name System.String
- The domain name to query.
- type DnsClientX.DnsRecordType
- The type of DNS record to query.
- requestDnsSec System.Boolean
- If set to true, the query will request DNSSEC records.
- validateDnsSec System.Boolean
- If set to true, the response will be validated using DNSSEC.
- debug System.Boolean
- If set to true, debug information will be printed to the console.
- endpointConfiguration DnsClientX.Configuration
- Configuration used for server details.
- cancellationToken System.Threading.CancellationToken
- Token used to cancel the operation.
Returns
A Task that represents the asynchronous operation. The Task's result is a DnsResponse that contains the DNS response.
Exceptions
DnsClientException– Thrown when the HTTP request fails or the server returns an error.