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?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…