API Reference
Class
DnsWireResolvePost
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
- 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 method will request DNSSEC data in the response.
- validateDnsSec System.Boolean
- If set to true, the method will validate DNSSEC data.
- debug System.Boolean
- If set to true, the method will include debugging information in the response.
- endpointConfiguration DnsClientX.Configuration
- Provide configuration so it can be added to Question for display purposes
- cancellationToken System.Threading.CancellationToken
- 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.