- or download this
$res = Net::DNS::Packet->new();
$rr = Net::DNS::RR->new("news.yahoo.com. 86400 A 10.1.2.3");
$res->push(answer => $rr);
print $res->data;
- or download this
;; HEADER SECTION
;; id = 26432
...
;; AUTHORITY SECTION (0 records)
;; ADDITIONAL SECTION (0 records)
- or download this
> dig -p 1024 @localhost news.yahoo.com
...
; (1 server found)
;; global options: printcmd
;; connection timed out; no servers could be reached
- or download this
;; HEADER SECTION
;; id = 41909
...
;; AUTHORITY SECTION (0 records)
;; ADDITIONAL SECTION (0 records)