[−][src]Function resolve::resolver::resolve_host
pub fn resolve_host(host: &str) -> Result<ResolveHost>
Resolves a hostname to one or more IPv4 or IPv6 addresses.
Example
use resolve::resolve_host; for addr in try!(resolve_host("rust-lang.org")) { println!("found address: {}", addr); }