EventDnsBase::__construct
(PECL event >= 1.2.6-beta)
EventDnsBase::__construct — Constructs EventDnsBase object
Description
Constructs EventDnsBase object.
Parameters
-
base
-
Event base.
-
initialize
-
If the
initialize
argument isTRUE
, it tries to configure the DNS base sensibly given your operating system’s default. Otherwise, it leaves the event DNS base empty, with no nameservers or options configured. In the latter case DNS base should be configured manually, e.g. with EventDnsBase::parseResolvConf() .
Return Values
Returns EventDnsBase object.
- Функция 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
Коментарии
404 Not Found