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.
Synopsis de la classe
final
EventDnsBase
{
/* Constants */
/* Méthodes */
}Constantes pré-définies
-
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.
-
EventDnsBase::OPTION_NAMESERVERS
-
Tells to learn the nameservers from the resolv.conf file.
-
EventDnsBase::OPTION_MISC
-
EventDnsBase::OPTION_HOSTSFILE
-
Tells to read a list of hosts from /etc/hosts as part of loading the resolv.conf file.
-
EventDnsBase::OPTIONS_ALL
-
Tells to learn as much as it can from the resolv.conf file.
Sommaire
- EventDnsBase::addNameserverIp — Ajoute un serveur de noms à la base DNS
- EventDnsBase::addSearch — Ajoute un domaine à la liste des domaines utilisés pour la recherche
- EventDnsBase::clearSearch — Supprime tous les suffixes courants de recherche
- EventDnsBase::__construct — Construit un objet EventDnsBase
- EventDnsBase::countNameservers — Récupère le nombre de serveurs de noms configurés
- EventDnsBase::loadHosts — Charge un fichier hosts (au même format que /etc/hosts)
- EventDnsBase::parseResolvConf — Analyse le fichier resolv.conf
- EventDnsBase::setOption — Définit la valeur d'une option de configuration
- EventDnsBase::setSearchNdots — Définit le paramètre 'ndots' pour les recherches