(PECL event >= 1.2.6-beta)
Represents Libevent's DNS base structure. Used to resolve DNS asyncronously, parse configuration files like resolv.conf etc.
public addNameserverIp ( string $ip ) : bool
public addSearch ( string $domain ) : void
public clearSearch ( ) : void
public __construct ( EventBase $base , bool $initialize )
public countNameservers ( ) : int
public loadHosts ( string $hosts ) : bool
public parseResolvConf ( int $flags , string $filename ) : bool
public setOption ( string $option , string $value ) : bool
public setSearchNdots ( int $ndots ) : bool}
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.
Tells to learn the nameservers from the
Tells to read a list of hosts from
/etc/hosts as part of loading the
Tells to learn as much as it can from the
© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.