localhost or LAN addresses in /etc/hosts

Nils Kassube kassube at gmx.net
Fri Dec 12 21:17:53 UTC 2008


Chris G wrote:
> dnsmasq uses the entries in /etc/hosts to provide information to other
> machines on the LAN.  Thus it *needs* an entry for isbd somewhere to
> tell other machines what isbd's address is.

Dnsmasq _can_ use the entries from "/etc/hosts" but it can also use 
entries from a separate file e.g. "/etc/hosts.dnsmasq" (I think that's 
the filename proposed in the config file). I would suggest you 
use "/etc/hosts" only for the localhost entry and "/etc/hosts.dnsmasq" 
for everything else. Then the resolver asks dnsmasq for everything except 
localhost.


Nils




More information about the ubuntu-users mailing list