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);
print_r($result);
outputs :
Array()
When it would be populated with values?
Any suggestions, advice or feedback would be greatly appreciated as i cannot for the life of my figure out why this is happening now!
updated
try
outputs:
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/