<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body style="font-size:17px;font-family:.SFUIText;color:#000000;background-color:white;">I run a namesever...  which also operates as a caching  nameserver.   Very low maintenance over the years.<br><br><div style="background:white;" id="newMessage">
<!-- MESSAGE END --></div><br><br><br><blockquote type="cite"><div style="font-family:Helvetica; font-size:16px; color:#000;"><b>From: </b>Lonni J Friedman via Linux-users <<a href="mailto:linux-users@linux-sxs.org">linux-users@linux-sxs.org</a>><br>
<b>Subject: </b><b>dynamically generating /etc/hosts</b><br>
<b>Date: </b>6/3/18 7:49 PM<br>
<b>To: </b>Linux tips and tricks <<a href="mailto:linux-users@linux-sxs.org">linux-users@linux-sxs.org</a>><br>
<b>CC: </b>Lonni J Friedman <<a href="mailto:netllama@gmail.com">netllama@gmail.com</a>><br>
<br><br><p>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>
<br>-- 
<br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<br>L. Friedman                                    <a href="mailto:netllama@gmail.com">netllama@gmail.com</a>
<br>LlamaLand                       <a href="http://netllama.linux-sxs.org">http://netllama.linux-sxs.org</a>
<br>_______________________________________________
<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">http://mailman.celestial.com/mailman/listinfo/linux-users</a>
<br>
</p></div></blockquote>
</body>