快捷搜索:   服务器  安全  linux 安全  MYSQL  dedecms

dns_get_record()函数用法可用于NSLOOKUP查询各项域名DNS记录(2)


$result = dns_get_record("bnxb.com", DNS_ANY, $authns, $addtl);
echo "Result = ";
print_r($result);
echo "Auth NS = ";
print_r($authns);
echo "Additional = ";
print_r($addtl);
?>

以上例程的输出类似于:

Result = Array
(
    [0] => Array
        (
            [host] => bnxb.com
            [type] => MX
            [pri] => 5
            [target] => pair2.bnxb.com
            [class] => IN
            [ttl] => 6765
        )

    [1] => Array
        (
            [host] => bnxb.com
            [type] => A
            [ip] => 64.246.30.37
            [class] => IN
            [ttl] => 8125
        )

)
Auth NS = Array
(
    [0] => Array
        (
            [host] => bnxb.com
            [type] => NS
            [target] => remote1.easydns.com
            [class] => IN
            [ttl] => 10722
        )

    [1] => Array
        (
            [host] => bnxb.com
            [type] => NS
            [target] => remote2.easydns.com
            [class] => IN
            [ttl] => 10722
        )

    [2] => Array
        (
            [host] => bnxb.com
            [type] => NS
            [target] => ns1.easydns.com
            [class] => IN
            [ttl] => 10722
        )

    [3] => Array
        (
            [host] => bnxb.com
            [type] => NS
            [target] => ns2.easydns.com
            [class] => IN
            [ttl] => 10722
        )

)
Additional = Array
(
    [0] => Array
        (
            [host] => pair2.bnxb.com
            [type] => A
            [ip] => 216.92.131.5
            [class] => IN
            [ttl] => 6766
        )

    [1] => Array
        (
            [host] => remote1.easydns.com
顶(0)
踩(0)

您可能还会对下面的文章感兴趣:

最新评论