unfortunately that didn't work. 🙁
I have been using ANY rather than A.
The function which I use is the function submitted by paul at start dot co dot uk on the getmxrr function page at php.net
function emailIsValid($email)
{
if (eregi("^[0-9a-z]([-_.]?[0-9a-z])*@[0-9a-z]([-.]?[0-9a-z])*\\.[a-z]{2,4}$", $email, $check)) {
$host = substr(strstr($check[0], '@'), 1).".";
if ( getmxrr($host, $validate_email_temp)) {
return TRUE;
}
// THIS WILL CATCH DNSs THAT ARE NOT MX.
if(checkdnsrr($host,"ANY")){
return TRUE;
}
}
return FALSE;
}
Like I say it's worked fine up until now. I suppose what I could do is see if I can build a firewall on the box and log any outgoing attempts, but that seems a long way around the problem.