Linux - Loopback IP configuration

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:

127.0.0.1 hostname.domainname hostname
127.0.0.1 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







Share this page:
Follow us:
Task Runner