Scientific Linux Forum.org



  Reply to this topicStart new topicStart Poll

> obscure hostname related problems, how to avoid them
tux99
 Posted: Jul 5 2012, 08:26 AM
Quote Post


SLF Moderator
********

Group: Moderators
Posts: 1273
Member No.: 224
Joined: 28-May 11









Make sure that the hostname saved in /etc/sysconfig/network (HOSTNAME=xyz) matches an IPv4 entry in /etc/hosts, not an IPv6 entry!

I had loads of weird problems like GUIs of apps not showing up simply because for some reason the hostname defined in /etc/sysconfig/network was listed in /etc/hosts next to the IPv6 entry '::1'.

Basically my broken config after installation looked like this:

/etc/sysconfig/network:
NETWORKING=yes
HOSTNAME=xyz

/etc/hosts:
127.0.0.1 localhost.localdomain localhost
::1 xyz localhost6.localdomain6 localhost6


This is the correct config:

/etc/sysconfig/network:
NETWORKING=yes
HOSTNAME=xyz

/etc/hosts:
127.0.0.1 localhost.localdomain localhost xyz
::1 localhost6.localdomain6 localhost6

(actually if you have IPv6 disabled as recommended then you can delete the line starting with ::1)

--------------------
My personal SL6 repository, specialized in audio/video software: http://pkgrepo.linuxtech.net/el6/
(can be used together with EPEL and ELRepo repositories) - repository mirror: http://linuxsoft.cern.ch/linuxtech/el6/
PM
^
redman
 Posted: Jul 5 2012, 10:43 AM
Quote Post


Retired SLF Administrator
********

Group: Admins
Posts: 1276
Member No.: 2
Joined: 8-April 11









Thanks for sharing http://th166.photobucket.com/albums/u117/rdshear/Smiley%20Faces/th_smiley-face-thumbs-up.gif
It can be really frustrating when you have that kind of weird problems without knowing/finding the cause.

--------------------
"Sometimes the best helping hand you can give is a good, firm push."
PM
^
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll