[CentOS] fqdn hostname fails after reboot

Thu Feb 9 00:00:33 UTC 2012
Chris <xchris89x at googlemail.com>

2012/2/8 Chris <xchris89x at googlemail.com>:
> Hi,
>
> I have several machines running CentOS 6.2 and a strange problem with
> the hostname of one machine... After every reboot it loses the fqdn
> hostname.
>
> Here is my confguration:
>
> ifconfig | grep "inet addr"
>          inet addr:10.0.0.12  Bcast:10.0.0.255  Mask:255.255.255.0
>          inet addr:127.0.0.1  Mask:255.0.0.0
>
> /etc/sysconfig/network
>
> NETWORKING=yes
> HOSTNAME=x800.mydomain.local
> GATEWAY=10.0.0.1
>
> 127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
> ::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
> 10.0.0.12   x800.mydomain.local   x800
>
> ... after a reboot:
>
> hostname
> x800.mydomain.local             < OK
>
> hostname -f
> hostname: Unknown host       < NOT OK
>
> dnsdomainname
> dnsdomainname: Unknown host      < NOT OK
>
> If I set the hostname manually:
>
> hostname x800.mydomain.local
>
> hostname -f
> x800.mydomain.local    < OK
>
> dnsdomainname
> mydomain.local    < OK
>
> Everything is okay ...
>
> Something I've never experienced before. Does anyone have an idea?
>
> thx
>
> --
> Chris

Another thing about this, postfix fails on startup:

Feb  9 00:49:57 x800 postfix[1387]: warning: valid_hostname: invalid
character 13(decimal): x800.mydomain.local?
Feb  9 00:49:57 x800 postfix[1387]: fatal: unable to use my own hostname
Feb  9 00:49:59 x800 postfix/sendmail[1471]: warning: valid_hostname:
invalid character 13(decimal): x800.mydomain.local?
Feb  9 00:49:59 x800 postfix/sendmail[1471]: fatal: unable to use my
own hostname

Because some CentOS system file is corrupted?

After setting "hostname x800.mydomain.local" postfix starts normally.

--
Chris