Struct trust_dns_resolver::Hosts
[−]
[src]
pub struct Hosts { pub by_name: HashMap<Name, Lookup>, }
Configuration for the local /etc/hosts
Fields
by_name: HashMap<Name, Lookup>
Name -> RDatas map
Methods
impl Hosts
[src]
fn new() -> Hosts
[src]
Creates a new configuration from /etc/hosts, only works for unix like OSes, others will return empty configuration
fn lookup_static_host(&self, name: &Name) -> Option<Lookup>
[src]
lookup_static_host looks up the addresses for the given host from /etc/hosts.