Specify Node Hostname
This is an optional step, which details how to specify the node hostname
Description | Command | |
---|---|---|
1 | Update the /etc/hosts file
NOTE: In the example I use "node01" as my hostname. I'm using the same hostname as my example FQDN: node01.zentest.win | sudo nano /etc/hosts Example Output # Your system has configured 'manage_etc_hosts' as True. 127.0.1.1 node01 # The following lines are desirable for IPv6 capable hosts |
2 | Update the /etc/hostname file
| sudo nano /etc/hostname Example Output node01 |
3 | Use systemd services to set the hostname, replacing <HOSTNAME> with your desired hostname | sudo hostnamectl set-hostname <HOSTNAME> Example Output zenops@vps421337:~$ sudo hostnamectl set-hostname node01 |
4 | Reboot the node and log back in as your non-root user to test that the host name has changed
| sudo reboot Example Output zenops@node01:~$ |