php - Issues with dns_get_record -


i trying configure script find out if clients record has been setup yet. problem is, have parked record on cpanel account.

therefore, when use

$ip = dns_get_record(url, dns_a);  if ($ip[0]['ip'] == ipaddress) {     echo '<div style="color:green; font-weight:bold;">dns correct</div>'; } else {      echo '<div style="color:red; font-weight:bold">dns config error</div>'; } 

or via gethostbyaddr() show record correctly setup , pointing server.. not. pointing server because have parked record in dns.

the script muse somehow first checks current servers dns records before proceeding global registry?

is there way check remote dns registry first?

you going want first find authoritative name server domain if not known, dig command on , check results answer.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -