🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #10633

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

#10633
From: Arctic Fidelity
Date: Sun, 06 Mar 2005 07:31
36 lines
3201 bytes
Michael T Pins <mtpins@nndev.org> writes:

>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.

Well, I can see how this would be a good thing, but I think it would be
really nice if nn really did discover the domain and hostname
dynamically, as it would make life a whole lot easier for distributing
binaries. I'm working on upgrading the Slackware packages to version
6.6.5, but the one problem I'm seeing is that there is no easy way to
make the DOMAIN system work on all the computer. Since Slackware
configures hostname as 

/bin/hostname $(cat /etc/HOSTNAME | cut -f1 -d.)

This means that using gethostname() only returns the machine name. And
you say this is correct behaviour, but if so, then why give the error
for an invalid FQDN? If nn should discover the hostname, should it not
be able to discover the hostname on a properly configured Linux system,
where gethostname() returns the machine name and gethostbyname() returns
the DNS FQDN? What's the best method to make nn work generically on many
machines without having to change the way the system configures
hostname? In other words, how can I make nn discover the FQDN, rather
than just the machine name? I need a generic solution that will work for
distributing it in binary form.

- Arctic Fidelity
-- 
"Beware of bugs in the above code; I have only proved it correct, not
tried it."
		-- Donald Knuth
Technical Details
Message-ID: <vrednTbX36pdLLffRVn-vg@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!local01.nntp.dca.giganews.com!nntp.gvtc.com!news.gvtc.com.POSTED!not-for-mail
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>

Show Full Headers
Complete Article Headers
Message-ID: <vrednTbX36pdLLffRVn-vg@gvtc.com>
Subject: Re: [solved?] Problem with NN and /etc/nntpserver
Date: Sun, 06 Mar 2005 01:31:12 -0600
From: Arctic Fidelity <af@sacrificumdeo.net>
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>
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!local01.nntp.dca.giganews.com!nntp.gvtc.com!news.gvtc.com.POSTED!not-for-mail
NNTP-Posting-Date: Sun, 06 Mar 2005 01:31:12 -0600
Newsgroups: news.software.nn
User-Agent: nn/6.6.5
Lines: 36
X-Trace: sv3-0rAUQJKA/HUyN7D92Wa1FdmONTdB3n7Hu+uhulNjqXgNXffd6q8MmO5r+JFZcSr33sxxdY5ATRG3c1c!QDYg5/IePYQJ1US3r3Z6PGkEiJlnZoa5pzKac7eGXMNnE4LU1UHT1XET0PktbPQ34jAK
X-Complaints-To: abuse@gvtc.com
X-DMCA-Complaints-To: abuse@gvtc.com
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint
 properly
X-Postfilter: 1.3.32