那你去找域名注册商要接口API吧
要不你从哪来数据?

解决方案 »

  1.   

    <?php
    $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
            ))
      

  2.   

    为什么我用dns_check_record()却出现:未定义的函数呢?我的是PHP5.2.3
      

  3.   

    这东西你不可能不用别人的东西,你用google查询一下whois了解一下相关知识吧。
      

  4.   

    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来查询的
      

  5.   

    百度一下“PHP whois” 
    你就可以找到你想要的源码啦
      

  6.   

    php下可以直接用sock通过fsockopen访问whois服务器
    端口43