1
vote
What is the best way to keep a Linux server's hostname consistent?
There are a few places where the hostname is stored:
In the kernel (/proc/sys/kernel/hostname)
In systemd
In /etc/hostname
In /etc/hosts
Possibly others (Dbus?)
So far, the fastest way I've found to ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
centos × 8320linux × 1401
yum × 656
networking × 432
rhel × 428
ssh × 307
rpm × 286
apache-httpd × 270
bash × 230
systemd × 195
software-installation × 182
iptables × 180
virtualbox × 176
permissions × 158
php × 146
shell-script × 142
package-management × 139
ubuntu × 134
mount × 131
partition × 131
lvm × 129
repository × 124
boot × 123
virtual-machine × 119
fedora × 118