Struct trust_dns_resolver::Hosts [−][src]
Configuration for the local /etc/hosts
Methods
impl Hosts
[src]
[−]
impl Hosts
pub fn new() -> Hosts
[src]
[−]
pub fn new() -> Hosts
Creates a new configuration from /etc/hosts, only works for unix like OSes, others will return empty configuration
pub fn lookup_static_host(&self, query: &Query) -> Option<Lookup>
[src]
[−]
pub fn lookup_static_host(&self, query: &Query) -> Option<Lookup>
lookup_static_host looks up the addresses for the given host from /etc/hosts.
pub fn insert(&mut self, name: Name, record_type: RecordType, lookup: Lookup)
[src]
[−]
pub fn insert(&mut self, name: Name, record_type: RecordType, lookup: Lookup)
Insert a new Lookup for the associated Name
and RecordType