How do I map hostnames to IP addresses?

Updated: April 19, 2023

The /etc/hosts file contains information regarding the known hosts on the network.

For each host, a single line should be present with the following information:

internet_address  official_host_name  aliases

Display this file by using the following command:

cat /etc/hosts