🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #36218

Re: Unwanted connections from ctl.f10.com

#36218
From: Russ Allbery
Date: Sat, 27 Mar 1999 00:00
35 lines
2232 bytes
Per Hedeland <per@erix.ericsson.se> writes:
> Russ Allbery <rra@stanford.edu> writes:

>> Patches would be gratefully accepted, I'm sure, but I wouldn't want to
>> run without any caching at all.  So I'd say that the patch would need
>> to either make it an inn.conf option, or would need to take the harder
>> route of maintaining a fast-expiring internal cache.

> The problem is of course that a DNS lookup can take a *very* long time,
> the standard resolver interface is synchronous, and you don't want innd
> sitting idle waiting for the lookup to complete while the incoming news
> piles up...

Right, exactly.

I suppose one could take the even harder approach of plugging in an
asychronous DNS library, but then it won't work if you're doing DNS via
NIS or some such abomination, which I'm sure a few INN sites are doing.
And it would ignore /etc/hosts.

> I guess this is yet another thing that shouldn't be in the main loop but
> in a separate process (like with e.g. Squid or (x)ntpd) - it could just
> keep doing periodic lookups and reporting any changes to innd via the
> control channel (while innd cached the results "forever" like it does
> now).

That's the method that Netscape uses, and also the method that a
chatserver I do work on from time to time uses.  (It forks right after
startup and does DNS queries across the pipe.)  It's a cheap way of
solving the problem, although it has other drawbacks.

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Technical Details
Message-ID: <ylpv5uw769.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-mail
References: <7d0j7j$1num$1@thor.wirehub.nl> <F941MH.MBr@spcuna.spc.edu> <brad-2403991950410001@brad.techos.skynet.be> <yl90cmsb09.fsf@windlord.stanford.edu> <7djonu$nkk$1@news.du.etx.ericsson.se>

Show Full Headers
Complete Article Headers
Message-ID: <ylpv5uw769.fsf@windlord.stanford.edu>
Subject: Re: Unwanted connections from ctl.f10.com
Date: Sat, 27 Mar 1999 00:00:00 +0000
From: Russ Allbery <rra@stanford.edu>
References: <7d0j7j$1num$1@thor.wirehub.nl> <F941MH.MBr@spcuna.spc.edu> <brad-2403991950410001@brad.techos.skynet.be> <yl90cmsb09.fsf@windlord.stanford.edu> <7djonu$nkk$1@news.du.etx.ericsson.se>
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: 459905284
Organization: The Eyrie
Newsgroups: news.software.nntp