dns_get_record
Get the DNS record of the specified host
dns_get_record()
function gets the DNS resource record associated with the specified hostname.
Get the MX resource record associated with "http://www.gitbox.net":
<?php print_r ( dns_get_record ( "gitbox.net" , DNS_MX ) ) ; ?>