I want to write a script which verifies the email address, and I how wrote the following script:
$ip = gethostbyname($domain);
$hostname = gethostbyaddr($ip);
For google email I am getting:
BUT for xxxxxxx.com:
And for yyyyyyy.com:
How reliable is this check? I was expecting not to get anything in case of faulty domain, but I do, and I get as well the same answer in case of normal nslookup from the command line, and is there is any more strict script which can verify the email server?
P.S. I running this check from another email server.