mirror of
https://github.com/danog/ext-uv.git
synced 2024-11-26 20:14:47 +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();
|