go ahead... be a heretic | |
PerlMonks |
Re^2: Whois script helpby Kanji (Parson) |
on Jan 11, 2005 at 19:12 UTC ( [id://421379]=note: print w/replies, xml ) | Need Help?? |
I second the use of DNS instead of whois. Even with modules, whois output can be a pain to parse into something consistent for all TLDs, something made trickier by the number of registrars who limit the number of whois queries you can do per day (eg, .tv allows 20/day per IP, which makes life interesting when you have 21 .tv domains :-). DNS doesn't have those limitations, but is equally capable of telling whether you should still be authoritative for a hostname by walking it's heirachy (eg, ask the root servers where .org is, ask the .org servers where pm.org is, ask the pm.org servers where www.pm.org is, etc.). Something like...
...should do the trick, if only to reduce the list of domains you don't need to whois. --k.
In Section
Seekers of Perl Wisdom
|
|