Article View: news.software.nntp
Article #16726Re: Reloading hosts.nntp
From: Jeff Garzik
Date: Sat, 05 Apr 1997 00:00
Date: Sat, 05 Apr 1997 00:00
37 lines
2029 bytes
2029 bytes
Ulric Eriksson wrote: > Chris Bellomy <cbellomy@flash.net> wrote: > >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. > 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). When you know all the host addresses beforehand, it is far better to perform DNS lookups beforehand, for many reasons: - you don't have to do a gethostbyaddr() for each incoming connection - many news.foo.com-style hosts are CNAMEs, and a gethostbyaddr() will not return news.foo.com, but rather MyCrazyMachine.foo.com. Using gethostbyaddr() would force news admins to keep track of individual remote news feed machines, rather than let the remote side take care of that entirely on their end, setting news.foo.com to point to the correct machine whatever that may be. - It allows admins to set multiple IP address for a single hostname, so that emergency / alternate feeders can start feeding your site if a remote machine goes down, with no intervention on your side. The "foo.net rota" example quoted above. Jeff
Technical Details
Message-ID:
<3346B56C.44C0622A@spinne.com>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:
<5hpj93$3rr@excalibur.flash.net> <5i5nb8$ma1$1@news.edu.stockholm.se>Show Full Headers
Complete Article Headers
Message-ID: <3346B56C.44C0622A@spinne.com> Subject: Re: Reloading hosts.nntp Date: Sat, 05 Apr 1997 00:00:00 +0000 From: Jeff Garzik <jeff.garzik@spinne.com> References: <5hpj93$3rr@excalibur.flash.net> <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 X-Deja-AN: 230971850 Organization: Spinne http://spinne.com Newsgroups: news.software.nntp