🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #10631

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

#10631
From: Michael T Pins
Date: Sat, 05 Mar 2005 06:55
41 lines
3498 bytes
Arctic Fidelity <spam@sacrificumdeo.net> writes:

>Michael T Pins <mtpins@visi.com> writes:

>>Arctic Fidelity <af@homeunix.net> writes:

>>>was hunky dory for the install. It worked like a charm! Now, I'm still
>>>having problems with my hostname...anyone want to tackle this? I'm going
>>>to read up on some stuff and possibly hack some nn code to fix this.

>>nn uses the gethostname() to get your hostname.  What error are you
>>getting?

>Basically, it's the correct error, and the program is running precisely
>as intended. I looked at the code, and saw the gethostname(). I checked
>up some things. Basically, Slackware's default script sets the hostname
>to "cat /etc/HOSTNAME | cut -f1 -d." or some such, which means only the
>first part gets to the actual "hostname". The rest is stored into the
>dnsdomainname. If you use "hostname -f" you can get the fqdn, but
>gethostname() returns the main hostname, not the dnsdomain and other
>such things which are added on with "hostname -f". I thought about
>hacking around and making it work, but it's not too much trouble for me
>to remove teh "cut -f1 -d." from the script. I think it's a bit buggish
>though, as I usually set up my computers so that hostname only gives the
>first part of the hostname, and not the domain and such.

Am I missing something here?  What exactly is the problem?

If it's due to nn complaining that you need a fully qualified domain name,
you need to uncomment the entry for DOMAIN in config.h.  This used to be
required, and is still the correct way to do things in general.  I only
added the ability for nn to get it from your hostname in nn-6.6.3, when
people started distributing nn as a preconfigured package.  gethostname
really should just return the machine name, not the FQDN.  Pre- nn-6.6.3,
nn wouldn't even compile if DOMAIN wasn't defined in config.h.

-- 
Michael T Pins              |	"It is not knowable how long that conflict
mtpins@nndev.org            |	(Iraq) would last.  It could last, you know,
keeper of the nn sources    |	six days, six weeks.  I doubt six months"
ftp://ftp.nndev.org/pub     |	- Donald Rumsfeld, Feb 7, 2003
Technical Details
Message-ID: <422957e6$1@aspen>
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!newshub.sdsu.edu!logbridge.uoregon.edu!canoe.uoregon.edu!newsfeed.news.ucla.edu!news-hog.berkeley.edu!ucberkeley!news.colorado.edu!aspen!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>

Show Full Headers
Complete Article Headers
Message-ID: <422957e6$1@aspen>
Subject: Re: [solved?] Problem with NN and /etc/nntpserver
Date: Sat, 05 Mar 2005 06:55:34 +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>
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!newshub.sdsu.edu!logbridge.uoregon.edu!canoe.uoregon.edu!newsfeed.news.ucla.edu!news-hog.berkeley.edu!ucberkeley!news.colorado.edu!aspen!mtpins
Newsgroups: news.software.nn
Organization: University of Colorado, Boulder
Lines: 41
NNTP-Posting-Host: aspen.earthnet.net
X-Trace: peabody.colorado.edu 1110005738 5098 66.151.173.2 (5 Mar 2005
X-Complaints-To: abuse@colorado.edu
NNTP-Posting-Date: 5 Mar 2005 06:55:38 GMT
User-Agent: nn/6.7.0
X-Original-NNTP-Posting-Host: 65-103-96-65.dsl.earthnet.net
X-Original-Trace: 4 Mar 2005 23:55:34 -0700, 65-103-96-65.dsl.earthnet.net