Tag Archives: dns

PHP get DNS Nameserver , Cname , MX , A records of a domain

By | May 27, 2013

PHP has a useful function called dns_get_record that can be used to get different types of records for a give domain , very easily. Nameserver – NS Records : $ php -a Interactive shell php > print_r(dns_get_record(‘www.binarytides.com’ , DNS_NS)); Array ( [0] => Array ( [host] => binarytides.com [type] => NS [target] => omikro1.allwebserver.com [class]… Read More »