localhost or LAN addresses in /etc/hosts

H.S. hs.samix at gmail.com
Mon Dec 15 19:12:26 UTC 2008

Chris G wrote:

> How is that any easier than simply giving the printer a static IP?  I
> have to faff about in the router's configuration to tell it to
> associate the MAC addres with the printer, that's just *another* place
> I have to do things.  I'm using dnsmasq to try and minimise that sort
> of hassle.

dnsmasq has exactly similar functionality. I specify the mac addresses
in dnsmasq and their associated names. I can additionally tell dnsmasq
what IP to give to a specific mac. dnsmasq.conf is the only place I have
to do this, one line per machine. I used to have the IP addresses and
hostnames in /etc/hosts. Not anymore, dnsmasq has solved that problem
quite nicely.

BTW, I am using an old computer running Debian as my router. But I
supposed the usual consumer routers also include functionality. In any
case, I just wanted to say that if you have dnsmasq running, that is the
only place where you should need to describe your network.

Good luck.


Please reply to this list only. I read this list on its corresponding
newsgroup on gmane.org. Replies sent to my email address are just
filtered to a folder in my mailbox and get periodically deleted without
ever having been read.

More information about the ubuntu-users mailing list