🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
4 messages
4 total messages Started by Rasmus Bøg Hansen Mon, 26 Feb 2001 23:14
can't gethostbyname
#50867
Author: Rasmus Bøg Hansen
Date: Mon, 26 Feb 2001 23:14
40 lines
2540 bytes
Hi

I upgraded my INN from 2.2.3 fou days ago. After some inital trouble (I
changed from tradspool to tradspool+timecaf+cnfs) it seems to run
seamlessly.

Except for the fact that it does not seem to know, who itself is. I get
entries like this in news.notice:

Feb 26 08:52:55 carlsberg nnrpd[5529]: SERVER perl filtering enabled
Feb 26 08:52:55 carlsberg nnrpd[5529]: ? cant gethostbyaddr 172.16.0.2
Success -- using IP address for access
Feb 26 08:52:55 carlsberg nnrpd[5529]: 8602-hansen.amagerkollegiet.dk
connect

everytime anybody connects. I do not really understand this, as it
worked fine before. Also DNS and hosts is configured properly:

news@carlsberg:~# cat /etc/hosts
127.0.0.1       localhost       localhost.localdomain
194.182.238.2   carlsberg.amagerkollegiet.dk    carlsberg
172.16.0.2      carlsberg.amagerkollegiet.dk    carlsberg
news@carlsberg:~# cat /etc/host.conf
order hosts, bind
news@carlsberg:~# host 172.16.0.2
2.0.16.172.in-addr.arpa. domain name pointer carlsberg.amagerkollegiet.dk.

As I mentioned INN 2.2.3 did not have this problem. It seems to work
fine anyway, but it annoys me. Anybody have an idea as where to look for
the problem?

It is running on RedHat Linux 7.0 (i586) with kernel 2.4.2 and glibc
2.2. It is compiled against 2.4.1 kernel headers and glibc 2.2. named
has been running all the time.

TIA

Rasmus

Re: can't gethostbyname
#50868
Author: Russ Allbery
Date: Mon, 26 Feb 2001 23:57
36 lines
2471 bytes
Rasmus B�g Hansen <moffespam@amagerkollegiet.dk> writes:

> I upgraded my INN from 2.2.3 fou days ago. After some inital trouble (I
> changed from tradspool to tradspool+timecaf+cnfs) it seems to run
> seamlessly.

> Except for the fact that it does not seem to know, who itself is. I get
> entries like this in news.notice:

> Feb 26 08:52:55 carlsberg nnrpd[5529]: SERVER perl filtering enabled
> Feb 26 08:52:55 carlsberg nnrpd[5529]: ? cant gethostbyaddr 172.16.0.2
> Success -- using IP address for access

Probably your forward and reverse DNS don't match.

> news@carlsberg:~# host 172.16.0.2
> 2.0.16.172.in-addr.arpa. domain name pointer carlsberg.amagerkollegiet.dk.

But:

windlord:~> host carlsberg.amagerkollegiet.dk
carlsberg.amagerkollegiet.dk    A       194.182.238.2

That makes the DNS information unreliable from INN's viewpoint and it will
discard it, reporting that error (which could stand to be improved, I
agree).  One thing to try would be putting the 172.16.0.2 line first in
/etc/hosts before the line containing its real IP address, but INN may be
linking with libresolv and going directly to DNS regardless of the
contents of your host.conf because of that.

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

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: can't gethostbyname
#50869
Author: Rasmus Bøg Hansen
Date: Tue, 27 Feb 2001 00:11
51 lines
3205 bytes
On 26 Feb 2001, Russ Allbery wrote:

> Rasmus B�g Hansen <moffespam@amagerkollegiet.dk> writes:
>
> > Feb 26 08:52:55 carlsberg nnrpd[5529]: SERVER perl filtering enabled
> > Feb 26 08:52:55 carlsberg nnrpd[5529]: ? cant gethostbyaddr 172.16.0.2
> > Success -- using IP address for access
>
> Probably your forward and reverse DNS don't match.
>
> > news@carlsberg:~# host 172.16.0.2
> > 2.0.16.172.in-addr.arpa. domain name pointer carlsberg.amagerkollegiet.dk.
>
> But:
>
> windlord:~> host carlsberg.amagerkollegiet.dk
> carlsberg.amagerkollegiet.dk    A       194.182.238.2
>
> That makes the DNS information unreliable from INN's viewpoint and it will
> discard it, reporting that error (which could stand to be improved, I
> agree).  One thing to try would be putting the 172.16.0.2 line first in
> /etc/hosts before the line containing its real IP address, but INN may be
> linking with libresolv and going directly to DNS regardless of the
> contents of your host.conf because of that.

Ok. I see that. But:

news@carlsberg:~# host 172.16.0.2
2.0.16.172.in-addr.arpa. domain name pointer carlsberg.amagerkollegiet.dk.
news@carlsberg:~# host carlsberg.amagerkollegiet.dk
carlsberg.amagerkollegiet.dk. has address 172.16.0.2
news@carlsberg:~# host 194.182.238.2
2.238.182.194.in-addr.arpa. is an alias for 2.1-31.238.182.194.in-addr.arpa.
2.1-31.238.182.194.in-addr.arpa. domain name pointer carlsberg.amagerkollegiet.dk.

The point is, that it is a local server, with it's main IP masquraded.
But it also has a global IP, which is just an alias.

So I see, that forward and reverse do not match from the outside -
however it does from the server's own point of view.

Also it first appeared in 2.3.1 - it did not happen with 2.2.3. I the
forward-reverse check a new feature?

But as I said, it works - it just annoys me...

Thanks for the reply.

Rasmus

Re: can't gethostbyname
#50871
Author: Russ Allbery
Date: Tue, 27 Feb 2001 00:52
15 lines
1724 bytes
Rasmus B�g Hansen <moffespam@amagerkollegiet.dk> writes:

> Also it first appeared in 2.3.1 - it did not happen with 2.2.3. I the
> forward-reverse check a new feature?

I think that the checking of the local IP address is new in 2.3 with the
readers.conf stuff.  Hm.  I wonder if the log message should just be
removed.  I need to go check what it's using its local IP address for.

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

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
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