Get MX records corresponding to a given Internet host name : DNS « Network « PHP






Get MX records corresponding to a given Internet host name

<?php
   getmxrr("www.java2s.com",$mxhosts);
   print_r($mxhosts);
?>


           
       








Related examples in the same category

1.getservbyname: get server by name
2.getservbyport: get server by port
3.Check DNS error