Thread View: news.software.nntp
1 messages
1 total messages
Started by Matthias Urlichs
Mon, 26 Oct 1992 23:01
Re: Debugging Guide To INN
Author: Matthias Urlichs
Date: Mon, 26 Oct 1992 23:01
Date: Mon, 26 Oct 1992 23:01
75 lines
4100 bytes
4100 bytes
In news.software.nntp, article <1c5ff3INNn1@sdl.Warren.MENTORG.COM>,
tal@Warren.MENTORG.COM (Tom Limoncelli) writes:
>
> There is a problem with what you enter in those files. Namely, I might
> call the client machine "client", but that doesn't matter. What
> matters is what "nntphost" thinks "client" is called. Maybe "nntphost"
> thinks its name is "client.do.main" or even "137.202.177.4". It
> doesn't matter what you call "client", permissions in the nnrp.access
> and hosts.nntp have to be specified based on what "nntphost" calls
> "client". (Technically, innd uses gethostbyaddr() to reverse-lookup
> the name. gethostbyaddr() uses DNS or, if you are on a brain-dead Sun
> running Sun's brain-dead NIS/DNS hack, it uses NIS).
Oops -- slight inaccuracy here. This is what nnrpd does. innd doesn't
use the DNS/NIS at all when a connection comes in; it reads hosts.nntp
at startup and remembers the address list which is returned by
gethostbyname() for each line.
> So, with this knowledge, edit "/usr/lib/news/hosts.nntp" and/or
> "/usr/lib/news/nnrp.access" and add "nntphost"'s name for "client" to
> the file(s). You can add a regular expression if you want to specify,
> for example, "*.sjc.mentorg.com". If the "nntphost"'s name for
> "client" is "client" (common for NIS/YP sites), and you want a wildmat
> expression for "all clients without FQDN's" then use "*[^.]*" (all
> hosts without periods in their name).
>
For the aforementioned reason, wildcards only work in nnrp.access, not
hosts.nntp.
> After you change either file you you have to inform innd about the
> change. "/usr/lib/news/bin/ctlinnd reload '' ynot" will re-read in all
> configuration files.
>
Just use "reload hosts.nntpd xyzzy" after changing hosts.nntpd. nnrp.access
isn't remembered by anything and thus won't have to be reloaded.
> To test a "reader": Give the "mode reader" command and see how it
> likes it. If it doesn't give an error, then nnrp.access is letting you
> through.
NB: Errors are defined as anything that starts with a number >= 400.
NB2: If a site can feed _and_ read, you'll have to link readers with innd's
client library. The reason for this is that the clients must tell INND that
they want to read; the library does that automagically.
> If "mode reader" gives an error (and rudely disconnects you) then you
NB: Some telnet implementations are Real Stupid(tm) and disconnect you before
showing the error message.
> have a typo in /usr/lib/news/nnrp.access OR you didn't issue the
> "ctlinnd reload" command correctly (or at all) OR nntphost thinks that
> "client" is called yet something else
OR innd can't exec nnrpd for one reason or another -- see the syslog output
or the innd.err log file.
> Exciting huh?
:-)
> By the way, if you are one of those people that reply to every test
> message they see, get a real hobby.
By the way, if you want to really annoy a lot of people and get many mail
messages from all over the world, post your test message to a non-test
newsgroup. :-(
--
A classic is something that everybody wants to have read and nobody
wants to read.
-- Mark Twain
--
Matthias Urlichs -- urlichs@smurf.sub.org -- urlichs@smurf.ira.uka.de /(o\
Humboldtstrasse 7 -- 7500 Karlsruhe 1 -- Germany -- +49-721-9612521 \o)/
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