I create a function to compare a txt record...
but only in my home this not work... At my job this work...
Any tip?
Obs:
- The TXT record is created 48 hours left
-
I Already clear/flush my dns cache!
_checkTxtRecord("iocheck","imob.io","123456"); function _checkTxtRecord($txt_recort,$domain,$compare) { if(checkdnsrr("$txt_recort.$domain","TXT")) { $result = dns_get_record("$txt_recort.$domain",DNS_TXT); if(isset($result[0]["txt"]) && $result[0]["txt"]==$compare) { return true; } } return false; }