hostname in /var/log/messages
Well, I see no answer for the same problem in other threads, though the questions are somewhat different.
I have a host that I changed its name, from host2 to host4. Everything seem to be fine, until I noticed that the hostname field in /var/log/messages is still reported as host2. It might explain a problem with kerberos login, that does not succeed.
Can someone explain me, and some other people on other threads, where the syslogd takes the hostname from, and why it's still the old name, while `hostname` report the new name, all other systems connect to the right host via the network, and (this is no-brainer) the bash prompt \h gives the right new name?