Domain Detective

API Reference

Class

DnsWireResolvePost

Namespace DnsClientX

Implements DNS queries sent via HTTP POST using the DNS wire format.

Inheritance

  • Object
  • DnsWireResolvePost

Methods

ResolveWireFormatPost(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 using HTTP POST and returns the response.

Parameters

client System.Net.Http.HttpClient required
The HttpClient used to send the request.
name System.String required
The domain name to query.
type DnsClientX.DnsRecordType required
The type of DNS record to query.
requestDnsSec System.Boolean required
If set to true, the method will request DNSSEC data in the response.
validateDnsSec System.Boolean required
If set to true, the method will validate DNSSEC data.
debug System.Boolean required
If set to true, the method will include debugging information in the response.
endpointConfiguration DnsClientX.Configuration required
Provide configuration so it can be added to Question for display purposes
cancellationToken System.Threading.CancellationToken required
Token used to cancel the operation.

Returns

A task that represents the asynchronous operation. The task result contains the DNS response.

Exceptions

  • ArgumentNullException – Thrown when the 'name' parameter is null or empty.
  • DnsClientException – Thrown when the HTTP request fails or the server returns an error.
{{ include "footer" }}