🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
1 messages
1 total messages Started by Russ Allbery Thu, 02 Apr 1998 00:00
Re: HeadHunter.NET flooding jobs newsgroups
#27421
Author: Russ Allbery
Date: Thu, 02 Apr 1998 00:00
42 lines
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/>

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads