Expand description
DNS client.
DnsClient resolves host names to IP addresses using a UDP socket it
creates inside the Stack. Requires the dns feature.
Usage:
- Create it with
DnsClient::new, giving it the DNS servers to use. - Start a query with
DnsClient::start_query. - Call
DnsClient::pollafter everyStack::poll, and again when the deadline it returns arrives. - Read the result with
DnsClient::get_query_result.
Structs§
- DnsClient
- A DNS client.
- DnsQuery
Handle - A handle to an in-progress DNS query.
Enums§
- GetQuery
Result Error - Error returned by
DnsClient::get_query_result. - Multicast
Dns - Whether a query is sent with multicast DNS.
- Start
Query Error - Error returned by
DnsClient::start_query.