EVENTDNSBASE(3) 							 1							   EVENTDNSBASE(3)

The EventDnsBase class

INTRODUCTION
Represents Libevent's DNS base structure. Used to resolve DNS asyncronously, parse configuration files like resolv.conf etc. CLASS SYNOPSIS
EventDnsBase final EventDnsBase Constants o const integer$EventDnsBase::OPTION_SEARCH1 o const integer$EventDnsBase::OPTION_NAMESERVERS2 o const integer$EventDnsBase::OPTION_MISC4 o const integer$EventDnsBase::OPTION_HOSTSFILE8 o const integer$EventDnsBase::OPTIONS_ALL15 Methods o public bool EventDnsBase::addNameserverIp (string $ip) o public void EventDnsBase::addSearch (string $domain) o public void EventDnsBase::clearSearch (void ) o public EventDnsBase::__construct (EventBase $base, bool $initialize) o public int EventDnsBase::countNameservers (void ) o public bool EventDnsBase::loadHosts (string $hosts) o public bool EventDnsBase::parseResolvConf (int $flags, string $filename) o public bool EventDnsBase::setOption (string $option, string $value) o public bool EventDnsBase::setSearchNdots (int $ndots) PREDEFINED CONSTANTS
o EventDnsBase::OPTION_SEARCH - Tells to read the domain and search fields from the resolv.conf file and the ndots option, and use them to decide which domains(if any) to search for hostnames that aren't fully-qualified. o EventDnsBase::OPTION_NAMESERVERS - Tells to learn the nameservers from the resolv.conf file. o EventDnsBase::OPTION_MISC - o EventDnsBase::OPTION_HOSTSFILE - Tells to read a list of hosts from /etc/hosts as part of loading the resolv.conf file. o EventDnsBase::OPTIONS_ALL - Tells to learn as much as it can from the resolv.conf file. PHP Documentation Group EVENTDNSBASE(3)