@ynber . . , . , . , .co,.co.in,.in. , :)
$email = trim($_GET['email']);
list($userName, $mailDomain) = split("@", $email);
$tld = explode('.', $mailDomain,2)[1];
if(checkdnsrr($mailDomain,'A') && !in_array(gethostbyname($mailDomain),gethostbynamel('this_is_a_wrong_url_xx_xx_xx.' . $tld))) {
echo "Domain exists.";
} else {
echo "Domain not exists.";
}
@aynber, +1 :).