Reputation: 463
I need to check if my users have add correctly the CNAME record but with this code I get empty array
<?php
$domain="martinashop.club";
if(checkdnsrr($domain,"CNAME")) {
echo "Passed";
} else {
echo "Failed";
}
echo "<br>";
print_r(dns_get_record($domain,DNS_CNAME));
echo "<br>";
print_r(dns_check_record($domain,"CNAME"));
?>
I not understan why not get the RECORD my domain using Clouflare maybe this get a error?
Thank you
Upvotes: 0
Views: 603