1

Linux - if I change the hostname, which services need to be restarted?

view story
linux-howto

http://serverfault.com – I'm making some large-scale system hostname changes and this got me thinking... If I change a server's hostname, what needs to be modified and which system services require a restart? Assume this is done online without a reboot. I encounter a lot of systems built by other people where hostname changes are made in-flight, but the changes either do not persist across a reboot, or I notice that /var/log/messages are stamped with a different hostname. I regularly follow: Run hostname <new-short-hostname> Modify /etc/hosts according to these guidelines. Modify /etc/sysconfig/network O (HowTos)