Module std::io::net::addrinfo[src]

Synchronous DNS Resolution

Contains the functionality to perform DNS resolution in a style related to getaddrinfo()

Structs

Hint

This structure is used to provide hints when fetching addresses for a remote host to control how the lookup is performed.

Info

Enums

Flag

Flags which can be or'd into the flags field of a Hint. These are used to manipulate how a query is performed.

Protocol

A transport protocol associated with either a hint or a return value of lookup

SocketType

Hints to the types of sockets that are desired when looking up hosts

Functions

get_host_addresses

Easy name resolution. Given a hostname, returns the list of IP addresses for that hostname.