array dns_get_record ( string hostname [, int type [, array &authns, array &addtl]] )注意: This function is not implemented on Windows platforms, nor does it (currently) work on *BSD systems. Try the PEAR class Net_DNS. ============================================================================ 大概是用 *nix 系统中的whois来查询的
$result = dns_get_record("php.net");
print_r($result);
?>
上例的输出类似于:
Array
(
[0] => Array
(
[host] => php.net
[type] => MX
[pri] => 5
[target] => pair2.php.net
[class] => IN
[ttl] => 6765
) [1] => Array
(
[host] => php.net
[type] => A
[ip] => 64.246.30.37
[class] => IN
[ttl] => 8125
))
大概是用 *nix 系统中的whois来查询的
你就可以找到你想要的源码啦
端口43