dpbf62565 2011-01-08 14:44
浏览 30

checkdnsrr()函数是否足以建立域(in)可用性?

I want to create simple script to check domain availability. Can anybody tell me is this function enough to check domain availability before user can register:

<?php
$recordexists = checkdnsrr("www.google.com", "ANY");

if ($recordexists)  
    echo "The domain name has been taken. Sorry!";
else 
    echo "The domain name is available!";

?>

or should I go with some other whois script like http://www.mrscripts.co.uk/index.php?op=lite

  • 写回答

1条回答 默认 最新

  • dongxie3701 2011-01-08 14:48
    关注

    A domain doesn't have to have any associated DNS records to be "taken" in the sense that we register and manage domains. A domain could be reserved with the registration authority pending the completion of a registration, or it might not have been added to the designated name servers just afterwards.

    If you're looking for something that's only intended to be indicative, then this approach is probably good enough. It just depends on what "good enough" means for you.

    评论

报告相同问题?

悬赏问题

  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
  • ¥15 ETLCloud 处理json多层级问题
  • ¥15 matlab中使用gurobi时报错
  • ¥15 这个主板怎么能扩出一两个sata口
  • ¥15 不是,这到底错哪儿了😭
  • ¥15 2020长安杯与连接网探
  • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么