🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #189463

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

#189463
From: Thufir
Date: Sat, 19 Aug 2006 17:31
145 lines
6419 bytes
Whiskers wrote:
[...]
> 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.

Ok.  I added the newline, with the same results, though.

[...]
> I suspect that your /etc/hosts file is not being read, so is perhaps
> faulty somehow.

That'd make sense.

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

Heh.  I'll use that next time, it's much more concise.

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

At the moment, I'm just getting "localhost.localdomain"

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

I'm in gnome, but I get your drift.

It seems clear that /etc/hosts isn't "working" because __________.  I
have to read up on a few things, dunno what xinetd is, for example.

[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]#
[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 '^]'.
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.
[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
[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

[root@localhost ~]# ls -al /etc/hosts
-rw-r--r-- 2 root root 163 Aug 19 11:00 /etc/hosts
[root@localhost ~]#
[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.
[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
[root@localhost ~]#
[root@localhost ~]# date
Sat Aug 19 11:16:24 IST 2006
[root@localhost ~]# hostname
localhost.localdomain
[root@localhost ~]#
[root@localhost ~]# date
Sat Aug 19 11:23:38 IST 2006
[root@localhost ~]#



thanks,

Thufir
Technical Details
Message-ID: <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!postnews.google.com!h48g2000cwc.googlegroups.com!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>

Show Full Headers
Complete Article Headers
Message-ID: <1156008712.141817.181590@h48g2000cwc.googlegroups.com>
Subject: Re: (was Re: setting FQDN in /etc/hosts)
Date: Sat, 19 Aug 2006 17:31:52 +0000
From: "Thufir" <hawat.thufir@gmail.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>
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!postnews.google.com!h48g2000cwc.googlegroups.com!not-for-mail
Newsgroups: news.software.readers
Organization: http://groups.google.com
Lines: 145
NNTP-Posting-Host: 24.84.131.197
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1156008717 14151 127.0.0.1 (19 Aug 2006 17:31:57
 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sat, 19 Aug 2006 17:31:57 +0000 (UTC)
User-Agent: G2/0.2
X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US;
 pango-text,gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: h48g2000cwc.googlegroups.com; posting-host=24.84.131.197;
 posting-account=fzKvuw0AAABwacCCYjdJ_2qlt6GHSH_U