🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #10705

Re: nn setup [was: Too lazy to re-learn TRN/TIN/SLRN?]

#10705
From: Aaron W. Hsu
Date: Sun, 10 Aug 2008 06:56
61 lines
4508 bytes
Steve Ackman <steve@SNIP-THIS.twoloonscoffee.com> writes:

>In <20080809182158.203@ilium.andrews-corner.org>, on Sat, 09 Aug 2008 
>18:27:58 +1000, andrew, andrew@ilium.invalid wrote:
>> On 2008-08-09, Steve Ackman <steve@SNIP-THIS.twoloonscoffee.com> wrote:
>>> In <20080809125625.646@ilium.andrews-corner.org>, on Sat, 09 Aug 2008 
>>> 13:01:03 +1000, andrew, andrew@ilium.invalid wrote:
>>>
>>>> andrew@ilium~$ hostname --fqdn
>>>> ilium.andrews-corner.org
>>>>
>>>> nn seems to be reading:
>>>>
>>>> andrew@ilium~$ hostname
>>>> ilium
>>>>
>>>> Is there a way around this?
>>>
>>>   I would think you'd want a line something like this 
>>> in /etc/hosts:
>>>
>>> 192.168.x.x	ilium.andrews-corner.org	ilium
>>
>> You would think that wouldn't you :-). Exactly what I have but nn seems
>> to run from the actual 'hostname' command which returns 'ilium' on my
>> Slackware system.

>  In FreeBSD, 'hostname' returns the FQDN while in 
>Debian lenny/sid, it requires 'hostname -f'  
>Possibly nn was written on a pre-Linux OS that behaved
>the way FreeBSD does.

>> I dug a little deeper and found I could place a
>> 'domain' line in /etc/resolv.conf and this pacified nn and enabled me to
>> start it.

>  Whatever works I guess.  I suppose another option
>might be
>$ alias hostname='hostname -f'

This won't really work because I believe NN uses gethostname(). It has 
been a while since I worked with the Slackware package, but this problem 
creeps in because I figured it was better to rely on people using a 
proper hostname than to make people edit their hostname in a file. If 
this turns out to be a real problem, then I might patch it. If you build 
from source you can either specify a domain manually, or you can use 
a file, or gethostname(), or uname. 

In general, just adding a domain to the hostname should work. There seems 
to be a good configuration option in the above text. 

Actually, NN does realize that it is on Linux, but it is somewhat limited 
by the behaviour of gethostname(). Adding a domain in resolv.conf isn't 
a bad way of handling it. 

	Aaron
-- 
+++++++++++++++ ((lambda (x) (x x)) (lambda (x) (x x))) +++++++++++++++
Email: <arcfide@sacrideo.us> | WWW: <http://www.sacrideo.us>
Scheme Programming is subtle; subtlety can be hard.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Technical Details
Message-ID: <roednQ8sndieDAPVnZ2dnUVZ_qPinZ2d@giganews.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!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local02.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail
References: <Jeff_Relf@Seattle.2008_Aug.6|3.18pm|V> <MPG.2304505ed025bba5989b07@66.250.146.159> <Jeff_Relf@Seattle.2008_Aug.6|6.16pm|X> <4hjk949bmhsiltcet892al4ls2vdo6net3@4ax.com> <g7dji9$qcp$1@registered.motzarella.org> <Jeff_Relf@Seattle.2008_Aug.6|8.13pm|a> <g7f110$7a1$1@blackhelicopter.databasix.com> <Xns9AF3622731811VeebleFetzer@127.0.0.1> <g7f7cg$8qa$1@blackhelicopter.databasix.com> <489b3314$0$81979$dbd4f001@news.wanadoo.nl> <slrng9migh.2pk.pjr@pjr.motzarella.org> <g7hlfk$9f3$1@blackhelicopter.databasix.com> <20080809075109.981@ilium.andrews-corner.org> <873alfkusd.fsf@ilium.andrews-corner.org> <lsadnUYYvP3TaQHVnZ2dnUVZ_hOdnZ2d@giganews.com> <20080809125625.646@ilium.andrews-corner.org> <slrng9qimt.ggn.steve@sorceror.wizard.dyndns.org> <20080809182158.203@ilium.andrews-corner.org> <slrng9ss86.ggn.steve@sorceror.wizard.dyndns.org>

Show Full Headers
Complete Article Headers
Message-ID: <roednQ8sndieDAPVnZ2dnUVZ_qPinZ2d@giganews.com>
Subject: Re: nn setup [was: Too lazy to re-learn TRN/TIN/SLRN?]
Date: Sun, 10 Aug 2008 01:56:03 -0500
From: Aaron W. Hsu <arcfide@sacrideo.us>
References: <Jeff_Relf@Seattle.2008_Aug.6|3.18pm|V> <MPG.2304505ed025bba5989b07@66.250.146.159> <Jeff_Relf@Seattle.2008_Aug.6|6.16pm|X> <4hjk949bmhsiltcet892al4ls2vdo6net3@4ax.com> <g7dji9$qcp$1@registered.motzarella.org> <Jeff_Relf@Seattle.2008_Aug.6|8.13pm|a> <g7f110$7a1$1@blackhelicopter.databasix.com> <Xns9AF3622731811VeebleFetzer@127.0.0.1> <g7f7cg$8qa$1@blackhelicopter.databasix.com> <489b3314$0$81979$dbd4f001@news.wanadoo.nl> <slrng9migh.2pk.pjr@pjr.motzarella.org> <g7hlfk$9f3$1@blackhelicopter.databasix.com> <20080809075109.981@ilium.andrews-corner.org> <873alfkusd.fsf@ilium.andrews-corner.org> <lsadnUYYvP3TaQHVnZ2dnUVZ_hOdnZ2d@giganews.com> <20080809125625.646@ilium.andrews-corner.org> <slrng9qimt.ggn.steve@sorceror.wizard.dyndns.org> <20080809182158.203@ilium.andrews-corner.org> <slrng9ss86.ggn.steve@sorceror.wizard.dyndns.org>
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!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local02.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Sun, 10 Aug 2008 01:56:03 -0500
Newsgroups: news.software.readers,news.software.nn
Organization: Sacrificum Deo
Reply-To: arcfide@sacrideo.us
Followup-To: news.software.readers
User-Agent: nn/6.7.3
Lines: 61
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-6LFM+kg3p6qkZdiaHsMQlDDzhp05/JqVjMQrkzItjFQ07ADe58IOlzkFveBJXcKfLwRf05vIBI18Zgn!aeICiYJhxNwyhIm0gKOMHGKF19Top//IcnHWHy5/me2E4vQ4AbKdYlufL15oXWjPqi34yKLUWQ==
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
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.39