I'm attempting to retrieve DNS record information about mail servers for email address from from our iSeries database and use the following code, where the host name is extacted from the email address:
if (checkdnsrr($host, DNS_MX))
{
echo "Valid DNS record <br>";
return true;
}
else {
echo "InValid DNS record <br>";
return false;
I get a blank array of dns records not matter what domain name I use.
Is there something special about attempting this in an iSeries environment that someone else has had experience with?
thanks,
Scott Sonntag

