🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #189480

Re: (was Re: setting FQDN in /etc/hosts)

#189480
From: Whiskers
Date: Sat, 19 Aug 2006 22:07
165 lines
5905 bytes
On 2006-08-19, Thufir <hawat.thufir@gmail.com> wrote:
> Whiskers wrote:

snip

> [root@localhost ~]# telnet localhost 119
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> 503 Leafnode must have a unique fully-qualified domain name. Have its
> administrator fix the configuration. More detail is in the logs.
>
> Leafnode must have a fully-qualified and globally unique domain name,
> not just "localhost.localdomain".
> Edit your /etc/hosts file to add a unique, fully qualified domain name.
> "localhost.localdomain" or thereabouts will not work;
> it's qualified, but not unique.
> Please see the README-FQDN file for details.
>
> Connection closed by foreign host.

Leafnode can't find a suitable hostname for the system it's running 
on.

> [root@localhost ~]# cat /etc/leafnode/config
> ## Unread articles will be deleted after this many days if
> ## you don't define special expire times. Mandatory.
>   expire = 2
>
> ## This is the NNTP server leafnode fetches its news from.
> ## You need read and post access to it. Mandatory.
>   server = shawnews.vc.shawcable.net
> ##  server = news.gmane.org
>
>
> ##  hostname = geidiprime.servebeer.com
>
>   initialfetch = 30

OK

> [root@localhost ~]# cat /etc/hosts
> # Do not remove the following line, or various programs
> # that require network functionality will fail.
>
> 127.0.0.1       geidiprime.servebeer.com geidiprime localhost

OK

> [root@localhost ~]# ls -al /etc/hosts
> -rw-r--r-- 2 root root 163 Aug 19 11:00 /etc/hosts
> [root@localhost ~]#

OK

> [root@localhost ~]#
> [root@localhost ~]# date
> Sat Aug 19 11:15:12 IST 2006
> [root@localhost ~]#
> [root@localhost ~]#
> [root@localhost ~]# nano /etc/leafnode/config
> [root@localhost ~]# /etc/init.d/xinetd restart
> Stopping xinetd:                                           [  OK  ]
> Starting xinetd:                                           [  OK  ]
> [root@localhost ~]# telnet localhost 119
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> 200 Leafnode NNTP Daemon, version 1.11.5 running at
> geidiprime.servebeer.com (my fqdn: geidiprime.servebeer.com)
> ^]
>
> telnet> quit
> Connection closed.

Something happened that means that now Leafnode can detect an acceptable 
hostname for the system.  It should run happily now.

Curiously, the command prompt doesn't reflect the same hostname.  Try 
typing in this command (at a normal user prompt, not root for the time 
being) and show us what happens to the prompt (it will be only temporary):

PS1='[\h \t \u \w]$ '

(PS1 is the system variable that tells your 'shell' what to put in the 
prompt).

snip

For what it's worth, here are some shell commands and their output from my 
system:

[mark@tavy etc]$ cat host.conf
order hosts,bind
multi on
[mark@tavy etc]$ 

[mark@tavy etc]$ cat hosts    
127.0.0.1               tavy.mobile.private tavy localhost
192.168.2.2     tavy.mobile.private
192.168.2.4     dart.mobile.invalid

212.85.147.118  www.mandrakesoft.com
212.85.147.118  mandrakesoft.com
[mark@tavy etc]$ 

[mark@tavy ~]$ hostname
tavy.mobile.private
[mark@tavy ~]$ 

[mark@tavy ~]$ telnet tavy nntp
Trying 127.0.0.1...
Connected to tavy.mobile.private (127.0.0.1).
Escape character is '^]'.
200 Leafnode NNTP Daemon, version 1.10.4.rel running at 
tavy.mobile.private (my fqdn: ID-107770.user.individual.net)
quit
205 Always happy to serve!
Connection closed by foreign host.
[mark@tavy ~]$ 

[mark@tavy ~]$ telnet localhost nntp
Trying 127.0.0.1...
Connected to tavy.mobile.private (127.0.0.1).
Escape character is '^]'.
200 Leafnode NNTP Daemon, version 1.10.4.rel running at 
tavy.mobile.private (my fqdn: ID-107770.user.individual.net)
quit
205 Always happy to serve!
Connection closed by foreign host.
[mark@tavy ~]$  

[mark@tavy ~]$ cat /etc/leafnode/config
cat: /etc/leafnode/config: Permission denied
[mark@tavy ~]$ sudo cat /etc/leafnode/config
server = news.enta.net
nopost = 1

server = news.individual.net
username = *****    
password = *****    

server = news.datemas.de
username = *****     
password = *****    

expire = 90

initialfetch = 200

timeout_long = 30

maxcrosspost = 3

filterfile = /etc/leafnode/filters

hostname = ID-107770.user.individual.net

create_all_links = 1
[mark@tavy ~]$ 

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Technical Details
Message-ID: <alekr3-krk.ln1@ID-107770.user.individual.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!newsfeed0.kamp.net!newsfeed.kamp.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <1155922996.353013.89150@h48g2000cwc.googlegroups.com> <6lihr3-rpm.ln1@ID-107770.user.individual.net> <1155955717.407500.277610@m73g2000cwd.googlegroups.com> <e2fjr3-6lc.ln1@ID-107770.user.individual.net> <1156008712.141817.181590@h48g2000cwc.googlegroups.com>

Show Full Headers
Complete Article Headers
Message-ID: <alekr3-krk.ln1@ID-107770.user.individual.net>
Subject: Re: (was Re: setting FQDN in /etc/hosts)
Date: Sat, 19 Aug 2006 23:07:06 +0100
From: Whiskers <catwheezel@operamail.com>
References: <1155922996.353013.89150@h48g2000cwc.googlegroups.com> <6lihr3-rpm.ln1@ID-107770.user.individual.net> <1155955717.407500.277610@m73g2000cwd.googlegroups.com> <e2fjr3-6lc.ln1@ID-107770.user.individual.net> <1156008712.141817.181590@h48g2000cwc.googlegroups.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!newsfeed0.kamp.net!newsfeed.kamp.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: news.software.readers
Organization: is an alien concept
Lines: 165
X-Trace: individual.net ifM2xinP6YQBQWiJNVLcNAFWMxpNyGM/v4atLZu4kGE5cuu8j1
X-Orig-Path: ID-107770.user.individual.net!news
X-Face: (8UIp\C%,7b>N'Aa}l7v*-4z\fb2ab=[r*LKrwTU]>W\E]YS3Cb3mZo1Ty.t2%6_KsTV_"Pmt)1xC~QW%bU/xrlDuux";
 aJOH0|Ka^MEDf"9Ck?FcYcR)aI~e[\"NW,mpyK}Q6dU[\BmvwRD00xYer];
 5mR_!\-haGb/=!*bDWCm0~!G7ewqq7*|#g2#uEBhnKk60qLJ":i_#zfZ'cH`2a^!q_lzxh@p&
 g^8<z5>HA
User-Agent: slrn/0.9.8.1 (Linux)