🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #189452

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

#189452
From: Whiskers
Date: Sat, 19 Aug 2006 13:07
88 lines
4865 bytes
On 2006-08-19, Thufir <hawat.thufir@gmail.com> wrote:
> Whiskers wrote:
> [...]
>> What have you got in /etc/xinetd.conf?  My Mandriva system has a line
>>
>> includedir /etc/xinetd.d
>>
>> and there is a file /etc/xinetd.d/leafnode created when I installed
>> leafnode using the Mandriva RPM - if your system is set up that way, what
>> have you got in that file?  (This is how you tell xinetd how to run the
>> leafnode deamon when required - alternatively you can use tcp_wrappers but
>> as you have xinetd it may as well be used).
> [...]
>
> Fedora seems to have the same setup as describe above.  Thanks for the
> info regarding restarting the networking :)

snip


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

It would be a lot easier to read the contents of your config files if you 
did not include the -n option for the cat command, and if you make sure 
that the lines are not wrapped differently in your post from the actual 
file.  There should be a space before the word localhost, then a newline.

> [root@localhost ~]# service network restart
> Shutting down interface eth0:                              [  OK  ]
> Shutting down loopback interface:                          [  OK  ]
> Bringing up loopback interface:                            [  OK  ]
> Bringing up interface eth0:
> Determining IP information for eth0... done.
>                                                            [  OK  ]

OK, ethernet and loopback are both running now.

> [root@localhost ~]# fetchnews -vvv
>
> 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.
>
> Killed
> [root@localhost ~]# date
> Fri Aug 18 20:45:59 IST 2006
> [root@localhost ~]#

I suspect that your /etc/hosts file is not being read, so is perhaps 
faulty somehow.  Make sure there is a newline at the end of the line; an
empty line before the end of the file should do no harm, and will make
sure that the newline character is present.  Also make sure that the 
permissions are appropriate - eg

[mark@tavy etc]$ ls -l hosts
-rw-r--r--  2 root root 181 Jul 27 21:11 hosts
[mark@tavy etc]$ 

You don't need to try to run leafnode to see if your /etc/hosts file is 
being interpreted as intended; the hostname command will tell you what 
your system's hostname is:

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

Note that the command prompt on my system also shows the name of the 
system; your's probably does too - so a prompt with the word localhost in 
it is an indication that the hostname is not being picked up.

You also seem to be doing many things 'as root' that can be done as a 
normal user with much greater safety; you should only take on superuser 
powers when essential.  If you are running a graphical interface, you can 
have two seperate 'terminals' at the same time, one for 'root' and one for 
you.  You can even configure them to look different, as a reminder.  
('Konsole', part of the KDE project, is particularly good at this).

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Technical Details
Message-ID: <e2fjr3-6lc.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!newsfeed.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>

Show Full Headers
Complete Article Headers
Message-ID: <e2fjr3-6lc.ln1@ID-107770.user.individual.net>
Subject: Re: (was Re: setting FQDN in /etc/hosts)
Date: Sat, 19 Aug 2006 14:07:58 +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>
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!newsfeed.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: 88
X-Trace: individual.net sLswMW1KUgdTLjE3TnPRiQdy5ubYz/XUtw1LgrUzbfTaeARAtb
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)