Current Location: Home> Function Categories> dns_get_record

dns_get_record

Get the DNS record of the specified host
Name:dns_get_record
Category:Network
Programming Language:php
One-line Description:Gets the DNS resource record associated with the specified hostname.

Definition and usage

dns_get_record() function gets the DNS resource record associated with the specified hostname.

Example

Get the MX resource record associated with "http://www.gitbox.net":

 <?php
print_r ( dns_get_record ( "gitbox.net" , DNS_MX ) ) ;
?>
Similar Functions
Popular Articles