[CentOS] Centos 6.4 hostname issues.

Wed Jun 19 09:33:41 UTC 2013
Rafał Radecki <radecki.rafal at gmail.com>

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.