The EventDnsBase class
Represents Libevent's DNS base structure. Used to resolve DNS asynchronously, parse configuration files like resolv.conf etc.
Intro
Represents Libevent's DNS base structure. Used to resolve DNS asynchronously, parse configuration files like resolv.conf etc.
Class synopsis
Predefined Constants
EventDnsBase::OPTION_SEARCHTells to read the domain and search fields from the
resolv.conffile and thendotsoption, and use them to decide which domains(if any) to search for hostnames that aren’t fully-qualified.EventDnsBase::OPTION_NAMESERVERSTells to learn the nameservers from the
resolv.conffile.EventDnsBase::OPTION_MISCEventDnsBase::OPTION_HOSTSFILETells to read a list of hosts from
/etc/hostsas part of loading theresolv.conffile.EventDnsBase::OPTIONS_ALLTells to learn as much as it can from the
resolv.conffile.EventDnsBase::DISABLE_WHEN_INACTIVEDo not prevent the libevent event loop from exiting when we have no active DNS requests.
EventDnsBase::INITIALIZE_NAMESERVERSProcess the
resolv.conf.EventDnsBase::NAMESERVERS_NO_DEFAULTDo not add default nameserver if there are no nameservers in the
resolv.conf.
Eventdnsbase