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


On 26/01/16 07:25, Stefan Priebe - Profihost AG wrote:
> 
> 
> Am 25.01.2016 um 23:20 schrieb Simon Kelley:
>> Not directly. If you just want a record of leases after they've
>> been released, then you can save information by using the
>> dhcp-script function. If you want to stop re-use of the
>> addresses, then the best you can easily do is to allocate static
>> addresses to clients. That will stop the addresses being
>> allocated to other clients, even when not leased.
> 
> I had the hope that dnsmasq evaluate the return code of the
> dhcp-script and i can use exit 1 if i do not want to delete the
> IP.

That's an interesting thought. The dhcp-script gets run
asynchronously, so it wouldn't be trivial to implement, but it may be
possible.
> 
> Is it possible that i readd the IP to the leases file in the 
> dhcp-script? Or does dnsmasq remove the entry after processing the 
> dhcp-script?

That wouldn't work at all. Dnsmasq only reads the contents of the
lease file at startup. The rest of the time it's working from an
internal copy. If you altered the file, your changes would just be
overwritten and ignored.


Cheers,

Simon.

> 
> Stefan
>> 
>> 
>> Cheers,
>> 
>> Simon.
>> 
>> On 25/01/16 16:42, Stefan Priebe - Profihost AG wrote:
>>> Hi,
>> 
>>> is there any way to keep IPs in the dnsmasq DB even the host
>>> sends a release?
>> 
>>> I want to keep those entry at least for 2 more days.
>> 
>>> Greets, Stefan
>> 
>>> _______________________________________________
>>> Dnsmasq-discuss mailing list
>>> Dnsmasq-discuss@lists.thekelleys.org.uk 
>>> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>>
>>
>>
>>> 
_______________________________________________
>> Dnsmasq-discuss mailing list 
>> Dnsmasq-discuss@lists.thekelleys.org.uk 
>> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>> 
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iQIcBAEBCAAGBQJWp3V7AAoJEBXN2mrhkTWic6IP/RS7ctPqm9NVTxLm/pGKivzC
SnfH3IYYuDUlP5R7dW3/FgJEbMTEPPzCqNmh/EwoGWexEQkED8SlUcDn7mZBqmlz
cuEOB8l2s9yAo0Lnr5ni6WuWOZcgW9BlPnN1kFhAO+f6fbHDC5tCOdXGnBYqCjUY
lvIoG2/0O87/buYf2DMdbvEwKlbr6RqmGMm7RL24nALYSi+O/OJQuwq+t0jgN5uJ
g3PA5KtzLknrDolA+aDoht3X9A6aSzLNi/TDZr97HNDpAWleK5ipCZaOls5qwu6s
CFEsKVfMTPAX6SPirzqwz8kO1sfKBfJ0t9CIpr+y1bYkam9VI8V2dWWE+EZxuhT+
jJelYnbo7CH4q5X9xTd0KM4MnZ8zo+7yaWbWYy43/7a9BFUWnA3bszq6WoUo4Qlv
BAh77KAZ/ah8EiIkuHH05L9OQ0URotVfJ44e2etgXSLKxZvf8wS2Ziu78+1BQDsh
tjMSjq5lNtI3ND2J14gDV3OW8F2EGxKoVwYqiCiNPavjypsAN9KYxrwX/K6fyqkY
MCd/+ZDyQrp568I0jPlWHHIReoCh+IDLcIqNUUsswpSCbytxvRwfjM+itYphx7kD
Ls7yvteHQhDCLDPARP0L52lS8YD6iBY2Fn+lxl5g9NiiBS6t5r6DrJTNhN8msr5Z
CrU2m4slCKehxhlVBP0c
=r5ot
-----END PGP SIGNATURE-----

_______________________________________________
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss

Reply via email to