Article View: news.software.nntp
Article #27421Re: HeadHunter.NET flooding jobs newsgroups
From: Russ Allbery
Date: Thu, 02 Apr 1998 00:00
Date: Thu, 02 Apr 1998 00:00
42 lines
2320 bytes
2320 bytes
Olaf Titz <olaf@bigred.inka.de> writes:
> However, a dynamic solution doing DNS lookups is not out of reach, given
> the fact that TLDs aren't bound to change very often (in fact, they can
> be regarded as static). Take that outline, which collects valid/invalid
> TLDs as they arrive:
> /\.(${validtld})>/i && return "";
> /\@[^@]+\.([^.]+)>/ || return "non FQDN domain";
> return "Invalid TLD" if ($invalidtld{$1});
> if (&lookup($1)) {
> $validtld.="|$1";
> return "";
> } else {
> $invalidtld{$1}=1;
> return "Invalid TLD";
> }
> sub lookup {
> # do a lookup for NS records and return 1 if valid, 0 if NXDOMAIN
> # FIXME: what about SERVFAIL?
> }
Keep in mind that DNS lookups are blocking and in a Perl filter you need
to return an accept or reject *right away*. Blocking INN to do a DNS
lookup isn't going to be acceptable, nor is there any way to do a
nonblocking lookup and recover the results later and have that be
meaningful.
I've lost track of this discussion a bit, but if you're talking about
requiring valid FQDNs in message IDs, that's a bad idea. For one thing,
it's perfectly valid for someone to be posting to a news server behind a
firewall and have their message IDs formed on that basis, but not have DNS
for those machines exported. For another thing, a lot of people (and I
mean a *lot*) use software that doesn't generate FQDNs in the message IDs,
including a lot of moderators. (SmartList is a major culprit, IIRC.)
--
Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Technical Details
Message-ID:
<m3btukfppk.fsf@windlord.Stanford.EDU>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<m3afabnmvf.fsf@windlord.Stanford.EDU> <6fsogt$a0$1@nz12.rz.uni-karlsruhe.de> <6ft0q9$449$1@bigred.inka.de> <6fucoh$8e2$1@nz12.rz.uni-karlsruhe.de> <6fvmof$td5$1@bigred.inka.de>Show Full Headers
Complete Article Headers
Message-ID: <m3btukfppk.fsf@windlord.Stanford.EDU> Subject: Re: HeadHunter.NET flooding jobs newsgroups Date: Thu, 02 Apr 1998 00:00:00 +0000 From: Russ Allbery <rra@stanford.edu> References: <m3afabnmvf.fsf@windlord.Stanford.EDU> <6fsogt$a0$1@nz12.rz.uni-karlsruhe.de> <6ft0q9$449$1@bigred.inka.de> <6fucoh$8e2$1@nz12.rz.uni-karlsruhe.de> <6fvmof$td5$1@bigred.inka.de> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 340145213 Sender: eagle@windlord.Stanford.EDU Organization: The Eyrie Newsgroups: news.software.nntp