Re: (was Re: setting FQDN in /etc/hosts)
- From: Whiskers <catwheezel@xxxxxxxxxxxxx>
- Date: Sat, 19 Aug 2006 14:07:58 +0100
On 2006-08-19, Thufir <hawat.thufir@xxxxxxxxx> 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
-- ~~~~~~~~~~
.
- Follow-Ups:
- Re: (was Re: setting FQDN in /etc/hosts)
- From: Jack Cuyler
- Re: (was Re: setting FQDN in /etc/hosts)
- From: Thufir
- Re: (was Re: setting FQDN in /etc/hosts)
- References:
- setting FQDN in /etc/hosts
- From: Thufir
- [Leafnode] (was Re: setting FQDN in /etc/hosts)
- From: Whiskers
- Re: (was Re: setting FQDN in /etc/hosts)
- From: Thufir
- setting FQDN in /etc/hosts
- Prev by Date: Re: Forte Releases Agent 4.0
- Next by Date: Re: Xnews refuses to start, please help
- Previous by thread: Re: (was Re: setting FQDN in /etc/hosts)
- Next by thread: Re: (was Re: setting FQDN in /etc/hosts)
- Index(es):
Relevant Pages
|