<div dir="ltr">Can you use dnsmasq to provide both DHCP and /etc/hosts (single file for local stuff), and forwarding DNS queries?<div><br></div><div>I don't think I've seen /etc/hosts being populated the way you want.</div><div><br></div><div>Ken </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jun 3, 2018 at 4:44 PM, Lonni J Friedman via Linux-users <span dir="ltr"><<a href="mailto:linux-users@linux-sxs.org" target="_blank">linux-users@linux-sxs.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">My home network has an assortment of Linux systems, which get their IP<br>
assignment via an ISC dhcpd server (also running on Linux).  The dhcp<br>
leases are handed out based on the MAC address of the client, such<br>
that they always get the same IP address assignment.<br>
<br>
However, I'd like to be able to generate an /etc/hosts file on all of<br>
the clients that has the IP & hostname associations based on the dhcp<br>
leases.  This is where I'm not finding any solutions which don't<br>
require running a namserver of some sort too.<br>
<br>
Anyone have any experience with this sort of thing (generating<br>
/etc/hosts on clients)?<br>
<br>
thanks!<br>
<span class="HOEnZb"><font color="#888888"><br>
-- <br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<wbr>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<wbr>~~~~~~~~~<br>
L. Friedman                                    <a href="mailto:netllama@gmail.com">netllama@gmail.com</a><br>
LlamaLand                       <a href="http://netllama.linux-sxs.org" rel="noreferrer" target="_blank">http://netllama.linux-sxs.org</a><br>
______________________________<wbr>_________________<br>
Linux-users mailing list<br>
<a href="mailto:Linux-users@linux-sxs.org">Linux-users@linux-sxs.org</a><br>
<a href="http://mailman.celestial.com/mailman/listinfo/linux-users" rel="noreferrer" target="_blank">http://mailman.celestial.com/<wbr>mailman/listinfo/linux-users</a><br>
</font></span></blockquote></div><br></div>