Hello everyone
I'm working in a project and need a dump (all dns records) from dns server. Is it posible to do this in php. Do someone have a API or something like this.
thank for help
bye
| SitePoint Sponsor |
Hello everyone
I'm working in a project and need a dump (all dns records) from dns server. Is it posible to do this in php. Do someone have a API or something like this.
thank for help
bye


Better than an API, PHP has a function -
dns_get_record
that outputs an array.
yes, i know this but this function can not be used on Windows platforms
From php.net
My Server is a Windows 2003 Server Apache and PHP.Description
array dns_get_record ( string hostname [, int type [, array &authns, array &addtl]] )
Note: This function is not implemented on Windows platforms, nor does it (currently) work on *BSD systems.


In that case you need the rest of the line you quoted.
http://pear.php.net/package/Net_DNS......... BSD systems. Try the PEAR class Net_DNS.
http://builder.com.com/5100-6371-5234651.html





you could exec a system command ... you just then have to parse out the data in a format of use to you
PHP Code:<?
exec("nslookup -querytype=ANY $domain",$yaks);
print_r($yaks);
?>
Bookmarks