tags:

views:

147

answers:

2

HI

Does anyone know how its possible to retrieve the DNS records for a domain.

I have been using php and this function: dns_get_record to do this so far but have realised that this command gets cached DNS records and therefore not the up to date information.

Does anyone know a way around this in php or some other language?

+2  A: 

The simplest solution would be to use Net_DNS PEAR Package.

Marko
+2  A: 

Do you really need that? DNS records doesn't change that often, and bypassing local cache will only slow queries down (especially if you start making recursive ones), with no real gain.

If you do need that, find or write a DNS resolver that can make recursive queries.

PiotrLegnica