[CentOS] Centos 6.4 hostname issues.
John Doe
jdmls at yahoo.com
Wed Jun 19 13:27:37 UTC 2013
From: Rafał Radecki <radecki.rafal at 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
More information about the CentOS
mailing list