Expand description
Provide domain name resolution service
Structs§
- Maybe
Ready - Implement Future to return asynchronous results
Enums§
- OneOr
More - Represents one or more SockeAddr, since a String type may be a domain name or a direct address
Traits§
- ToSocket
Addrs - Converts or resolves without blocking to one or more
SocketAddrvalues.
Functions§
- each_
addr - Look up all the socket addr’s and pass in the method to get the result
- get_
ip_ addrs - Resolving domain to get
IpAddrNote: must run as async runtime,such astokio::task::spawn_blocking - get_
socket_ addrs - Resolving
domain:portforms,such as bilibili.com:1080 - get_
socket_ addrs_ from_ host_ port - Resolving domain and port to get
SocketAddr - set_
custom_ dns_ server - Set up DNS servers, use
DEFAULT_DNS_SERVER_GROUPby default Note: must be called before the first network connection to be effective