Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP get DNS records without caching

Tags:

php

dns

records

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 realized 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?

like image 541
Adam Chetnik Avatar asked Oct 17 '25 10:10

Adam Chetnik


1 Answers

The simplest solution would be to use Net_DNS PEAR Package.

like image 160
Marko Avatar answered Oct 19 '25 01:10

Marko



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!