<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10px"><div id="yui_3_16_0_1_1428677662006_3368" dir="ltr"><span id="yui_3_16_0_1_1428677662006_3458">Thanks! I tried dhcp_release. It deletes the dhcp lease from /var/lib/misc/dnsmasq.leases file. However, the mac address entry does not get deleted from dhcp-hostsfile. I want to make sure that particular machine gets unregistered from my dnsmasq server. In order to delete this particular mac address from dhcp-hostsfile, should this file be parsed?</span></div><div id="yui_3_16_0_1_1428677662006_3368" dir="ltr"><span>Thanks,</span></div><div id="yui_3_16_0_1_1428677662006_3368" dir="ltr"><span>Jay</span></div><br> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 10px;" id="yui_3_16_0_1_1428677662006_3372"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id="yui_3_16_0_1_1428677662006_3371"> <div dir="ltr" id="yui_3_16_0_1_1428677662006_3370"> <hr size="1" id="yui_3_16_0_1_1428677662006_3423"> <font size="2" face="Arial" id="yui_3_16_0_1_1428677662006_3369"> <b><span style="font-weight:bold;">From:</span></b> Simon Kelley <simon@thekelleys.org.uk><br> <b><span style="font-weight: bold;">To:</span></b> jsb <jay_s_b@yahoo.com>; Dnsmasq-discuss <dnsmasq-discuss@lists.thekelleys.org.uk> <br> <b><span style="font-weight: bold;">Sent:</span></b> Thursday, April 9, 2015 2:03 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: deleting entries from dhcp-hostsfile in dnsmasq<br> </font> </div> <div class="y_msg_container" id="yui_3_16_0_1_1428677662006_3418"><br>-----BEGIN PGP SIGNED MESSAGE-----<br clear="none">Hash: SHA1<br clear="none"><div class="qtdSeparateBR"><br><br></div><div class="yqt1796651857" id="yqtfd96404"><br clear="none">On 09/04/15 21:34, jsb wrote:<br clear="none">> Hello,I am using dhcp-hostsfile=/home/clients file to dynamically<br clear="none">> add a new system/host (mac address). Is there a way to delete a <br clear="none">> system/host mac address from this file using a command? or should <br clear="none">> this file be parsed and deleted for a mac address?Thanks,Jay</div><br clear="none">> <br clear="none"><br clear="none">There's a small command-line utility called dhcp_release which is in<br clear="none">the directory contrib/wrt in the dnsmasq source distribution. It's<br clear="none">included in Debian/Ubuntu packages, I'm not sure about other distros.<br clear="none"><br clear="none">That will allow you to delete an arbitrary DHCP lease.<br clear="none"><br clear="none"><br clear="none">Cheers,<br clear="none"><br clear="none">Simon.<br clear="none">-----BEGIN PGP SIGNATURE-----<br clear="none">Version: GnuPG v2.0.22 (GNU/Linux)<br clear="none"><br clear="none">iEYEARECAAYFAlUm6QkACgkQKPyGmiibgrd5kACgq7t5xOu6png5JBUryZvNOhmL<br clear="none">WYMAn3Cx87QiK+eM+g81pc/s+sv9AmkO<br clear="none">=mXkK<br clear="none">-----END PGP SIGNATURE-----<div class="yqt1796651857" id="yqtfd36224"><br clear="none"></div><br><br></div> </div> </div> </div></body></html>