Re: Minimal DNS answer using Net::DNS

2006-11-27 Thread Kelly Jones
! On 11/26/06, A. Pagaltzis [EMAIL PROTECTED] wrote: * Kelly Jones [EMAIL PROTECTED] [2006-11-26 08:00]: I've used xinetd to set up a test nameserver on port 1024. Here's the Net::DNS Perl I'm using to say (falsely) that news.yahoo.com resolves to 10.1.2.3 with a TTL of 1 day: Hmm. Your question

Minimal DNS answer using Net::DNS

2006-11-25 Thread Kelly Jones
I've used xinetd to set up a test nameserver on port 1024. Here's the Net::DNS Perl I'm using to say (falsely) that news.yahoo.com resolves to 10.1.2.3 with a TTL of 1 day: $res = Net::DNS::Packet-new(); $rr = Net::DNS::RR-new(news.yahoo.com. 86400 A 10.1.2.3); $res-push(answer = $rr); print