What are the possible parameters that can be used with checkdnsrr and what do they signify?

When using the checkdnsrr function in PHP, you can specify various parameters to customize the behavior of the function. These parameters include the hostname to check, the type of DNS record to look up (such as A, MX, NS, etc.), and an optional nameserver to use for the lookup. By providing these parameters, you can control which DNS records are checked and where the lookup is performed.

// Example of using checkdnsrr with parameters to check for MX records of a domain
$domain = 'example.com';
$record_type = 'MX';

if(checkdnsrr($domain, $record_type)){
    echo "MX record found for $domain";
} else {
    echo "No MX record found for $domain";
}