Makinanızın hostname’inin ne olduğunu öğrenmekle işe başlayalım.

uname -n
hostname -s
hostname -d
hostname -f
hostname

If it returns localhost.localdomain then it’s wrong. If not then your linux box is ok. (Very big hint for me was that before, the command prompt was [root@localhost ~]#)

For a static IP Address, /etc/hosts is configured as follows:
127.0.0.1 localhost.localdomain localhost
192.168.0.xxx mybox.mydomain.com mybox

Change 192.168.0.xxx to your static IP Address.

Set hostname:

hostname mybox.mydomain.com

Check /etc/sysconfig/network file. Must have be like this:
NETWORKING=yes
HOSTNAME=”mybox.mydomain.com”

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.