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 with a TTL of 1 second, though most nameservers will cache it for longer) 2. Have mirror.ktjones.com return the IP address of the requestor (so you can see where your DNS queries *really* go) 3. Have time.ktjones.com return the current time (either as a TXT record or the result of Perl's time() converted to IP address format) w/ a TTL of 1 second-- see how long your DNS server caches 1 second TTLs. 4. Have ttl-[n].time.ktjones.com do the same thing but with a TTL of n seconds. 5. Have http.url.with.slashes.replaced.by.dots.ktjones.com return (TXT record) the contents of a specified URL, perhaps adding a "part[n]" parameter if TXT record size is limited. Added bonuses: 5a. Quasi-anonymizes web access (almost everyone proxies DNS requests, and it's UDP) 5b. Caches web content on nameservers -- content from more popular webservers will be available on multiple nameservers, even if the site itself goes down 5c. UDP more efficient than TCP? 5d. Pollutes the DNS namespace :) 6. Scaled-down version of above (limited size TXT records): 6a. "stocksymbol.stock.ktjones.com" return a stock quote 6b. "metarsymbol.metar.ktjones.com" return the latest METAR (weather) for a given METAR code 6c. "content.email-address.email.ktjones.com" sends an email to someone (yeah, this could admittedly be abused) 6d. "content.(screename|phonenumber).(aim|sms).ktjones.com" could send an AIM message or SMS to someone I guess I should've posted to fun-with-DNS, but I don't think that exists! 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 is not very Fun, so this is the wrong list to ask. You probably want to take this to Perlmonks. Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/>
-- We're just a Bunch Of Regular Guys, a collective group that's trying to understand and assimilate technology. We feel that resistance to new ideas and technology is unwise and ultimately futile.