Jump to content

[SOLVED] checkdnsrr not working keeps failing domain


c_shelswell

Recommended Posts

Hi for some reason the below code keeps returning false not quite sure what i'm doing wrong. Any ideas would be great thanks.

 

$mailDomain = 'hotmail';

if (checkdnsrr($mailDomain, "MX"))
{
return true;
}
else
{
	return false;
}

 

unless there's a better way to test for badly typed domains. i.e. yaho rather than yahoo?

 

Cheers

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.