I am using the following php:
- Code: Select all
<?php
require_once 'Net/DNS.php';
// create object
$ndr = new Net_DNS_Resolver();
// uncomment this for debug output
$ndr->debug = 1;
// query for IP address
$answer = $ndr->search("cnet.com", "A");
// print output
print_r($answer);
?>
- Code: Select all
;; search(cnet.com, A, IN) ;; query(cnet.com, A, IN) ;; using extended PHP sockets 0


