Setting the hostname and machine information
Setting a proper hostname on a computer is very useful in the business world. It allows the computer to be registered in a Domain Name Service (DNS) zone, which allows users and administrators to reach the computer via its hostname. After all, it's a lot easier to remember a computer's hostname than to remember its IP address, especially if it's an IPv6 address. (Has anyone in history ever memorized an IPv6
address?) Before we look at how to set this information, let's learn how to view it. (Note that this hostname can be automatically registered either by using Dynamic Domain Name Service (DDNS) or by using orchestration tools such as Puppet, Chef, or Ansible.)
Viewing the information
A computer's hostname is set in the /etc/hostname
file, as we see here on my Alma machine:
[donnie@localhost ~]$ cd /etc [donnie@localhost etc]$ cat hostname localhost.localdomain [donnie@localhost etc]$
The installers...