<?php $result = dns_get_record("www.example.com",DNS_CNAME); print_r($result); ?>
<?php $result = dns_get_record("example.com",DNS_ALL); print_r($result); ?>
<?php $hostname = "google.com"; $enrgs = dns_get_record($hostname, DNS_ALL); foreach
<?php $enrgs = dns_get_record("www.yahoo.com"); print_r($enrgs); ?>