dns_get_record查询失败 [英] dns_get_record query failed

查看:327
本文介绍了dns_get_record查询失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图创建DNS可用性检查器,并且在测试dns_get_record()时,某些结果失败了.

I was trying to create a DNS availability checker, and while testing dns_get_record(), some of the results failed.

我的代码是这样的:

$result = dns_get_record("pitottube.com", DNS_ANY);
print_r($result);

通常,它应该以数组(如果有的话)或空数组(如果没有的话)的形式返回某些东西,但是如果我输入"pitottube.com",它会发出这样的警告:

Normally, it is supposed to return something in an array (if it's available), or an empty array (if it's not) -- but if I put "pitottube.com", it gives a warning like this:

Warning: dns_get_record() [function.dns-get-record]: DNS Query failed

您能帮上忙吗?

推荐答案

该域的指定官方" dns服务器似乎已脱机.域上的Whois给出:

It looks like the specified "official" dns servers for that domain are offline. A whois on the domain gives:

Record expires on 12-Apr-2012.
Record created on 13-Apr-1998.
Database last updated on 25-Jan-2012 13:20:24 EST.

Domain servers in listed order:

NS1.DONGMUN.NET              147.46.147.28
NS2.DONGMUN.NET              147.46.147.29

并直接查询任何一个指定的名称服务器都将返回失败-它们也不可ping通,因此没有正式的DNS服务器可用于响应该域上的查询.因此,您的错误.

and directly querying either of the specified name servers returns failure - they're not pingable either, so there's no official DNS servers available to respond to queries on that domain. Hence your error.

这篇关于dns_get_record查询失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆