Net_DNS: Examples: AXFR

How to perform an Zone Transfer (AXFR):

require_once("Net/DNS.php");
$res = new Net_DNS_Resolver();
$res->debug = 1;
$answer = $res->axfr("example.com");
echo "<BR><HR><BR>";
print_r($answer);

This example will query the name server and output the following: