The EventDnsBase class
(PECL event >= 1.2.6-beta)
Introduction
Represents Libevent's DNS base structure. Used to resolve DNS asyncronously, parse configuration files like resolv.conf etc.
Class synopsis
final class EventDnsBase {
/* Constants */
/* Methods */
}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.
Table of Contents
- EventDnsBase::addNameserverIp — Adds a nameserver to the DNS base
- EventDnsBase::addSearch — Adds a domain to the list of search domains
- EventDnsBase::clearSearch — Removes all current search suffixes
- EventDnsBase::__construct — Constructs EventDnsBase object
- EventDnsBase::countNameservers — Gets the number of configured nameservers
- EventDnsBase::loadHosts — Loads a hosts file (in the same format as /etc/hosts) from hosts file
- EventDnsBase::parseResolvConf — Scans the resolv.conf-formatted file
- EventDnsBase::setOption — Set the value of a configuration option
- EventDnsBase::setSearchNdots — Set the 'ndots' parameter for searches
↑ and ↓ to navigate • Enter to select • Esc to close • / to open