Linux - Loopback IP configuration

> Operating System - Kernel (Windows, Unix, Linux) > Linux / Unix

1 - About

To configure the host to resolve host names to the loopback IP, the /etc/hosts file must be modified to contain the following entries: hostname.domainname hostname localhost.localdomain localhost

After doing so, you can check that the host name resolves to the loopback IP address by entering the following command:

/bin/ping hostname.domainname