[Dnsmasq-discuss] prevent dnsmasq from releasing IPs

Simon Kelley simon at thekelleys.org.uk
Tue Jan 26 21:31:29 GMT 2016


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256



On 26/01/16 14:56, Stefan Priebe - Profihost AG wrote:
> 
>> Am 26.01.2016 um 14:46 schrieb Simon Kelley
>> <simon at thekelleys.org.uk>:
>> 
> 
> 
>>>> On 26/01/16 13:42, Stefan Priebe - Profihost AG wrote:
> 
>>>> 
>>>> what about writing and sending kill 1 / HUP?
> 
> 
> No. The only only way to make that work would be to
> 
> 1) Stop dnsmasq with SIGTERM 2) modify the leases file 3) restart
> dnsmasq
> 
> 
> in that
> 
>> Last idea isn't it possible to make the host static on add? If it
>> is which file should I use to add the mac  hostname IP
>> combination


Add the hostname and IP in /etc/hosts, and add the MAC/hostname or
MAC/IP as --dhcp-host configuration.

You can provide all three in --dhcp-host, that will ensure that only
the specified MAC address gets that IP address BUT, the IP/name  will
only exist in the DNS whilst the DHCP lease exists. If you want the
hostname to always resolve, you have to put it in /etc/hosts or friend.


Cheers,

Simon.

> 
> 
> 
> 
> 
> Cheers,
> 
> Simon.
> 
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iQIcBAEBCAAGBQJWp+WxAAoJEBXN2mrhkTWiok8P/2ty3LW/0sDDtPdgZhyykddc
fTecPR4ApYG3n8advL4F/2gpy5bKx4JYn8si6jSJJS12knex7BpdDYfqPnJ/NOcs
PKlmjc2eIvWaLI04ZvCJKCOgr/jkp8Mn1oGkEKz0+yVRfNsfl43hAMSLZWb21o5i
FrQ7RTrIXJhtbDnY+h1LytrofWmZcmH3FfzTsBc36DRd8fu7p7LEmbm8M6q54vLn
pm0w3OF5oeTUyMXy8d5RQk0tOHMmOgno0qgTF/UzBAXw2DQDFa4TwsVJMNg2HKUz
QHqf8hnEOLYYmWGSbwek29SXKET1NYxtwfYfHmzrJOPEURSmIN7TW0WqTDHIJWAd
WVzx/bvJg8lHsQo9/JYqlp1N+oeG7qT5BnY22Ab5cYzpOEPJrLSqVDdeBJEYGgAW
sAabk2Y0FyudiL62Rst639j4km9AlyQc3/uCqnTTyb/2xPxo6Wkev7YJHZ7jh49N
xDpFmSVrDIx+Hu4uvhNR8U2X6FGLNN7n1RIJXb2jAKVOH7TFg/vPnaYwwRUDypBa
NTlrvei/c9ujioBuTqLn3wDyyK2GZ6WwSSUdDLOkLVceZO7vrkHao2qhTQOPI1+0
t5LlTG98dYttvJKfMzKe/IfwVuUXYz6Qgwstjymovcl3Y4Q7pSGq67XVNn9S2xoT
uvTqfGlGGZTQ3g2EnXEj
=lFuW
-----END PGP SIGNATURE-----



More information about the Dnsmasq-discuss mailing list