Re: Minimal DNS answer using Net::DNS

2006-11-27 Thread Kelly Jones
Aristotle and everyone, My apologies for posting to the wrong list. My idea was that writing a DNS server that can return anything (no silly zone files) was to buy a domain (let's say ktjones.com) and set it up to do the following: 1. Have fortune.ktjones.com return a random fortune (TXT record

Re: Minimal DNS answer using Net::DNS

2006-11-26 Thread A. Pagaltzis
* 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 is not very Fun, so this is the wrong list to ask.

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