Thread View: news.software.nntp
3 messages
3 total messages
Started by Chris Bellomy
Mon, 31 Mar 1997 00:00
Reloading hosts.nntp
Author: Chris Bellomy
Date: Mon, 31 Mar 1997 00:00
Date: Mon, 31 Mar 1997 00:00
24 lines
1414 bytes
1414 bytes
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)? -- Chris Bellomy Flashnet Communications Senior System Administrator Fort Worth, Texas cbellomy@flash.net (817)332-8878 "Cogito ergo paupertas"
Re: Reloading hosts.nntp
Author: Ulric Eriksson
Date: Sat, 05 Apr 1997 00:00
Date: Sat, 05 Apr 1997 00:00
33 lines
1801 bytes
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.
Re: Reloading hosts.nntp
Author: 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
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