🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #10659

Re: [solved?] Problem with NN and /etc/nntpserver

#10659
From: Michael T Pins
Date: Thu, 24 Mar 2005 20:30
34 lines
2637 bytes
Arctic Fidelity <af@sacrificumdeo.net> writes:

>flaps@dgp.toronto.edu (Alan J Rosenthal) writes:

>>Arctic Fidelity <af@sacrificumdeo.net> writes:
>>>In other words, how can I make nn discover the FQDN,

>>You don't want the FQDN either.  e.g. my From: address should say
>>"flaps@dgp.toronto.edu" rather than "flaps@somestupidhost.dgp.toronto.edu".

>This isn't a problem, because of the #HIDDENNET option that you can use.
>If you choose to activate this option, from everything I can see, nn
>will strip the leading machine name from the host_name to come up with,
>in your case, dgp.toronto.edu from "somestupidhost.dgp.toronto.edu". 

Correct.

I've added another way for nn to find the domain to nn-6.7 (the alpha
version of which I should be releasing later today).
What nn will now do is:

If DOMAIN is defined, nn will use that.
Otherwise, if the hostname is a FQDN, nn will use it.
Otherwise, if there is a domain directive in /etc/resolv.conf, nn will use
that.

As everyone should either have a hostname that is a FQDN, or have a domain
directive in /etc/resolv.conf, this should work for (nearly) everyone.

-- 
Michael T Pins              |	"We're dealing with a country (Iraq) that
mtpins@nndev.org            |	can really finance its own reconstruction,
keeper of the nn sources    |	and relatively soon."
ftp://ftp.nndev.org/pub     |		- Paul Wolfowitz, 3/27/03
Technical Details
Message-ID: <11468r4binpgt03@corp.supernews.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.20140326.mbox.gz!number1.nntp.ams.giganews.com!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.maxwell.syr.edu!news-hog.berkeley.edu!newsfeed.berkeley.edu!ucberkeley!sn-xit-02!sn-xit-10!sn-xit-01!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!mtpins
References: <c8qdnSJxb57cXb3fRVn-qw@gvtc.com> <2005Feb27.232614.20624@jarvis.cs.toronto.edu> <u8OdnbulQNZ8Lr_fRVn-iQ@gvtc.com> <KrGdnVOTduSTbL7fRVn-tQ@gvtc.com> <112h18kiq7dt887@corp.supernews.com> <lomdndsk2YjI2rTfRVn-iQ@gvtc.com> <422957e6$1@aspen> <vrednTbX36pdLLffRVn-vg@gvtc.com> <2005Mar6.084721.23795@jarvis.cs.toronto.edu> <hu6dnbect4x5_bbfRVn-oA@gvtc.com>

Show Full Headers
Complete Article Headers
Message-ID: <11468r4binpgt03@corp.supernews.com>
Subject: Re: [solved?] Problem with NN and /etc/nntpserver
Date: Thu, 24 Mar 2005 20:30:28 -0000
From: Michael T Pins <mtpins@nndev.org>
References: <c8qdnSJxb57cXb3fRVn-qw@gvtc.com> <2005Feb27.232614.20624@jarvis.cs.toronto.edu> <u8OdnbulQNZ8Lr_fRVn-iQ@gvtc.com> <KrGdnVOTduSTbL7fRVn-tQ@gvtc.com> <112h18kiq7dt887@corp.supernews.com> <lomdndsk2YjI2rTfRVn-iQ@gvtc.com> <422957e6$1@aspen> <vrednTbX36pdLLffRVn-vg@gvtc.com> <2005Mar6.084721.23795@jarvis.cs.toronto.edu> <hu6dnbect4x5_bbfRVn-oA@gvtc.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.20140326.mbox.gz!number1.nntp.ams.giganews.com!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.maxwell.syr.edu!news-hog.berkeley.edu!newsfeed.berkeley.edu!ucberkeley!sn-xit-02!sn-xit-10!sn-xit-01!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!mtpins
Newsgroups: news.software.nn
Organization: Posted via Supernews, http://www.supernews.com
User-Agent: nn/6.7.alpha
X-Complaints-To: abuse@supernews.com
Lines: 34