Trouver les enregistrements de Type MX(Mail Exchange) d’un nom de domaine

Author:


Download

<?php

   $domain = explode("@","contact@gmail.com");

   $valid = checkdnsrr($domain[1], "ANY");

   if($valid)
   {
   echo "<b>$domain[1]</b> à un enregistrement de type MX!";
   }
   else
   {
   echo "Aucun enregistrement de type MX trouvé pour <b>$domain[1]</b>";
   }
?>

Leave a Reply

Your email address will not be published. Required fields are marked *


nine − = 1