🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #16722

Re: Reloading hosts.nntp

#16722
From: Ulric Eriksson
Date: Sat, 05 Apr 1997 00:00
33 lines
1801 bytes
In article <5hpj93$3rr@excalibur.flash.net>,
Chris Bellomy <cbellomy@flash.net> wrote:
>Purely informational question here.
>
>One upstream provider of ours (let's call them foo.net) maintains
>a bunch of feeders which identify themselves to our server under
>the same name (feeder.foo.net).  Periodically, the news admin at
>foo.net will send email to his client news admins to reload 
>hosts.nntp, as he has added more servers to the "feeder.foo.net"
>rota.  We are not asked to make any changes to hosts.nntp; foo.net
>just says that it is necessary to reload in order to make innd
>perform gethostbyname()'s and get all the valid IP addresses for
>feeder.foo.net.
>
>Is foo.net right about this?  Or should it matter as long as
>"feeder.foo.net" is in hosts.nntp (and hosts.nntp has been reloaded
>with that entry in it)?

When hosts.nntp is loaded, innd looks up the feeders listed and
remembers the IP adresses. So foo.net is right, innd doesn't
remember the name of the feeder, just the address.

I was baffled by this myself, as nnrpd does indeed use gethostbyname
to check if a reader is authorized. The code is in rc.c (for innd)
and nnrpd.c (for nnrpd).


Ulric Eriksson
-- 
I proactively leverage my synergies.

Technical Details
Message-ID: <5i5nb8$ma1$1@news.edu.stockholm.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
References: <5hpj93$3rr@excalibur.flash.net>

Show Full Headers
Complete Article Headers
Message-ID: <5i5nb8$ma1$1@news.edu.stockholm.se>
Subject: Re: Reloading hosts.nntp
Date: Sat, 05 Apr 1997 00:00:00 +0000
From: ulric@ns.edu.stockholm.se (Ulric Eriksson)
References: <5hpj93$3rr@excalibur.flash.net>
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: 230966943
Organization: IT i Undervisningen
Newsgroups: news.software.nntp