Swoole\Async::dnsLookup

(PHP 5 >= 5.2.0, PHP 7, PECL swoole >= 1.9.0)

Swoole\Async::dnsLookupAsync and non-blocking hostname to IP lookup.

˵��

public static Swoole\Async::dnsLookup ( string $hostname , callable $callback ) : void

Warning

��������δ��д�ĵ������в����б�

����

hostname

The host name.

callback
callback ( string $hostname , string $ip ) : mixed
hostname

The host name.

IP

The IP address.