Struct trust_dns_resolver::Hosts
[−]
[src]
pub struct Hosts { /* fields omitted */ }
Configuration for the local /etc/hosts
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, query: &Query) -> Option<Lookup>
[src]
lookup_static_host looks up the addresses for the given host from /etc/hosts.
fn insert(&mut self, name: Name, record_type: RecordType, lookup: Lookup)
[src]
Insert a new Lookup for the associated Name
and RecordType