I am trying to obtain ptr records for a domain.
For some reason when i try to do this using dns_get_record it is constantly coming back as empty.
I did try this originally and got a whole range of results but now its just returning an empty array every time... Could someone suggest the reason behind this behaviour?
$result = dns_get_record("webstorm.co.za", DNS_PTR);
$result = dns_get_record("18.104.22.168.in-addr.arpa.", DNS_PTR); print_r($result);
Array (  => Array ( [host] => 22.214.171.124.in-addr.arpa [class] => IN [ttl] => 108002 [type] => PTR [target] => dialup-126.96.36.199.Dial1.StLouis1.Level3.net ) )
You wont get prt from a domain name. You need to run it on a reverse name.
you can get more info in here: http://www.menandmice.com/knowledgehub/dnsqa/56/