Reputation: 4093
I was trying to create a DNS availability checker, and while testing dns_get_record()
, some of the results failed.
My code is something like this:
$result = dns_get_record("pitottube.com", DNS_ANY);
print_r($result);
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
Can you help with this?
Upvotes: 3
Views: 5940
Reputation: 360562
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
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.
Upvotes: 2