API Reference
Class
DnsJsonResolve
Extension methods for performing DNS queries using the DNS JSON API.
Inheritance
- Object
- DnsJsonResolve
Methods
ResolveJsonFormat(System.Net.Http.HttpClient client, System.String name, DnsClientX.DnsRecordType type, System.Boolean requestDnsSec, System.Boolean validateDnsSec, System.Boolean debug, DnsClientX.Configuration configuration, System.Threading.CancellationToken cancellationToken) #Sends a DNS query in JSON format 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.
- configuration 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
DnsClientException– Thrown when the HTTP request fails or the server returns an error.
ResolveJsonFormatPost(System.Net.Http.HttpClient arg1, System.String arg2, DnsClientX.DnsRecordType arg3, System.Boolean arg4, System.Boolean arg5, System.Boolean arg6, DnsClientX.Configuration arg7, System.Threading.CancellationToken arg8) #Sends a DNS query in JSON format using HTTP POST and returns the response.
Parameters
- arg1 System.Net.Http.HttpClient
- arg2 System.String
- arg3 DnsClientX.DnsRecordType
- arg4 System.Boolean
- arg5 System.Boolean
- arg6 System.Boolean
- arg7 DnsClientX.Configuration
- arg8 System.Threading.CancellationToken