[Dnsmasq-discuss] deleting entries from dhcp-hostsfile in dnsmasq
Simon Kelley
simon at thekelleys.org.uk
Thu Apr 9 22:03:05 BST 2015
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 09/04/15 21:34, jsb wrote:
> Hello,I am using dhcp-hostsfile=/home/clients file to dynamically
> add a new system/host (mac address). Is there a way to delete a
> system/host mac address from this file using a command? or should
> this file be parsed and deleted for a mac address?Thanks,Jay
>
There's a small command-line utility called dhcp_release which is in
the directory contrib/wrt in the dnsmasq source distribution. It's
included in Debian/Ubuntu packages, I'm not sure about other distros.
That will allow you to delete an arbitrary DHCP lease.
Cheers,
Simon.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
iEYEARECAAYFAlUm6QkACgkQKPyGmiibgrd5kACgq7t5xOu6png5JBUryZvNOhmL
WYMAn3Cx87QiK+eM+g81pc/s+sv9AmkO
=mXkK
-----END PGP SIGNATURE-----
More information about the Dnsmasq-discuss
mailing list