[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: hosts file entry for 127.0.1.1



On 2015-02-28, Philippe Clérié <philippe@gcal.net> wrote:
> What is the rationale for the /etc/hosts entry for 127.0.1.1?
>
> It tends to be annoying when using dnsmasq as a server for static hosts.
>

It is used when the host uses DHCP to obtain an IP address. One places
an entry in /etc/hosts so that the host name is mapped to 127.0.1.1.
Some X applications complain when the host name cannot be resolved.

If your server has a static IP, then you would instead map that IP to
the host name in the same file.

-- 

Liam



Reply to: