Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Swoole\AsyncSwoole\Async::read>
^Swoole\AsyncLast updated: Mon, 26 Oct 2026

Swoole\Async::dnsLookup

(PECL swoole >= 1.9.0)

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

Description

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

Warning

This function is currently not documented; only its argument list is available.

Parameters

hostname

The host name.

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

The host name.

IP

The IP address.


<Swoole\AsyncSwoole\Async::read>
^Swoole\AsyncLast updated: Mon, 26 Oct 2026