mirror of
https://github.com/danog/ext-uv.git
synced 2024-11-30 04:29:01 +01:00
15 lines
259 B
PHP
15 lines
259 B
PHP
|
<?php
|
||
|
$uv = uv_ares_init_options(uv_default_loop(), array(
|
||
|
"servers" => array(
|
||
|
"8.8.8.8"
|
||
|
),
|
||
|
"port"=>53
|
||
|
),null);
|
||
|
|
||
|
ares_gethostbyname($uv,"google.com",AF_INET, function($name, $addr){
|
||
|
var_dump($name);
|
||
|
var_dump($addr);
|
||
|
});
|
||
|
|
||
|
uv_run();
|