Skip to main content


Namespace: global/dns

Functions used to query the DNS.

fn resolver

fn resolver(params: ?) -> Result<DnsResolver>
Build a DNS resolver.

fn lookup

fn lookup(dns: DnsResolver, host: String) -> Array>
Performs a dual-stack DNS lookup for the given hostname.

fn rlookup

fn rlookup(dns: DnsResolver, ip: String) -> Array>
Performs a reverse lookup for the given IP.