Hi All.
I currently have a problem with hostname and fqdn. I use:
# cat /etc/redhat-release ; uname -r CentOS release 6.4 (Final) 2.6.32-358.11.1.el6.centos.plus.x86_64
# hostname srv1.devel.test.com
# grep HOSTNAME /etc/sysconfig/network HOSTNAME=srv1.devel.test.com
# cat /etc/hostname srv1
# cat /etc/domainname devel.test.com
but
# hostname --fqdn devel.test.com
As I think it should give: srv1.devel.test.com. Have you got similar problem? Any hint how to solve it?
Best regards, Rafal Radecki.
From: Rafał Radecki radecki.rafal@gmail.com
I currently have a problem with hostname and fqdn. # hostname srv1.devel.test.com # hostname --fqdn devel.test.com
hostname's man page says: "Technically: The FQDN is the name gethostbyname(2) returns for the host name returned by gethostname(2). The DNS domain name is the part after the first dot. Therefore it depends on the configuration (usually in /etc/host.conf) how you can change it. Usually (if the hosts file is parsed before DNS or NIS) you can change it in /etc/hosts."
So I would check your /etc/hosts.
JD