Article View: news.software.nntp
Article #50868Re: can't gethostbyname
From: Russ Allbery
Date: Mon, 26 Feb 2001 23:57
Date: Mon, 26 Feb 2001 23:57
36 lines
2471 bytes
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.
Technical Details
Message-ID:
<ylu25hyp2z.fsf@windlord.stanford.edu>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!supernews.google.com!sn-xit-03!supernews.com!news-feed.riddles.org.uk!news.litech.org!news.ems.psu.edu!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mailReferences:
<Pine.LNX.4.32.0102270003430.1841-100000@7812-grignard.amagerkollegiet.dk>Show Full Headers
Complete Article Headers
Message-ID: <ylu25hyp2z.fsf@windlord.stanford.edu> Subject: Re: can't gethostbyname Date: Mon, 26 Feb 2001 23:57:56 +0000 From: Russ Allbery <rra@stanford.edu> References: <Pine.LNX.4.32.0102270003430.1841-100000@7812-grignard.amagerkollegiet.dk> 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!supernews.google.com!sn-xit-03!supernews.com!news-feed.riddles.org.uk!news.litech.org!news.ems.psu.edu!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 35 NNTP-Posting-Host: windlord.stanford.edu MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.Stanford.EDU 983231876 19702 171.64.13.23 (26 Feb 2001 23:57:56 GMT) X-Complaints-To: news@news.stanford.edu User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)