Skip to content

a class decode domain to ip,use local dns server

Notifications You must be signed in to change notification settings

szulilin/php-dns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

php-dns

一个用php写的向指定dns服务器请求域名解析协议的程序。

$dns = new dns();
$dns->send('211.162.78.1', 53, "www.baidu.com");//第一个参数为dns服务器,53为端口,后面的为域名
$res1 = $dns->recv();
$Domain_IP1 = $res1['list'];//解析出的ip列表

About

a class decode domain to ip,use local dns server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages