Is there a difference in reliability between checkdnsr and dns_get_record functions in PHP when checking domain entries?

When checking domain entries in PHP, the `dns_get_record` function is generally more reliable than `checkdnsrr`. This is because `dns_get_record` is more versatile and provides more detailed information about the DNS records of a domain. Additionally, `dns_get_record` supports a wider range of record types compared to `checkdnsrr`, making it a more robust option for checking domain entries.

$domain = 'example.com';

// Using dns_get_record function to check domain entries
$dns_records = dns_get_record($domain);

if($dns_records) {
    foreach($dns_records as $record) {
        echo $record['host'] . ' - ' . $record['type'] . ' - ' . $record['ip'] . '<br>';
    }
} else {
    echo 'No DNS records found for ' . $domain;
}