API Reference
Class
DnsWireResolveUdp
Performs DNS resolution over UDP using the DNS wire protocol.
Inheritance
- Object
- DnsWireResolveUdp
Methods
ResolveWireFormatUdp(System.String dnsServer, System.Int32 port, System.String name, DnsClientX.DnsRecordType type, System.Boolean requestDnsSec, System.Boolean validateDnsSec, System.Boolean debug, DnsClientX.Configuration endpointConfiguration, System.Int32 maxRetries, System.Threading.CancellationToken cancellationToken) #Sends a DNS query in wire format using DNS over UDP (53) and returns the response.
Parameters
- dnsServer System.String
- port System.Int32
- name System.String
- type DnsClientX.DnsRecordType
- requestDnsSec System.Boolean
- validateDnsSec System.Boolean
- debug System.Boolean
- endpointConfiguration DnsClientX.Configuration
- Provide configuration so it can be added to Question for display purposes
- maxRetries System.Int32
- Maximum number of retry attempts.
- cancellationToken System.Threading.CancellationToken
- Token used to cancel the operation.
Returns
The DNS response.
Exceptions
ArgumentNullException
SendQueryOverUdp(System.Net.Sockets.UdpClient udpClient, System.Byte[] query, System.Net.IPAddress ipAddress, System.Int32 port, System.Int32 timeoutMilliseconds, System.Threading.CancellationToken cancellationToken) #Sends a DNS query over UDP and returns the response.
Parameters
- udpClient System.Net.Sockets.UdpClient
- Client used for sending the query.
- query System.Byte[]
- Wire-format query bytes.
- ipAddress System.Net.IPAddress
- port System.Int32
- timeoutMilliseconds System.Int32
- Timeout in milliseconds.
- cancellationToken System.Threading.CancellationToken
- Token used to cancel the operation.
Returns
Raw DNS response bytes.