Re: [Dnsmasq-discuss] [PATCH] Nack requests for unknown leases.

2017-04-23 Thread Simon Kelley
On 20/04/17 10:34, Alin Nastac wrote: > Hosts that migrate from one network to another could request their > old IP address which might be already in use by another statically > configured host. Currently non-authoritative dnsmasq servers will > ignore such requests, but ISC DHCP client will send

Re: [Dnsmasq-discuss] Disabling dynamic DHCP assignment for known hosts

2017-04-23 Thread Simon Kelley
I like this. (Almost) completely backwards compatible, obvious to use, solves a problem. What do people think? I think the implementation is over-complex: calling find_config() with the context set to NULL is all that's needed to implementthe search, but that's a detail. Cheers, Simon. On

Re: [Dnsmasq-discuss] not giving name to the DHCP lease

2017-04-23 Thread Simon Kelley
On 22/04/17 07:12, Harald Dunkel wrote: > Hi folks, > > dnsmasq 2.76, as packaged for openBSD 6.1: > > dnsmasq.log contains tons of lines like > > : > : > Apr 22 04:08:46 dnsmasq-dhcp[70140]: not giving name nas1.example.com to the > DHCP lease of 10.0.0.239 because the name exists in

Re: [Dnsmasq-discuss] [PATCH] Logging of dhcp_script output

2017-04-23 Thread Simon Kelley
OK, there's a little subtlety here that needs to be taken into account. The lease file format was not originally designed to be extensible, so the code takes advantage (sort of) of the fact that lines which are associated with IPv6 leases make no sense to older versions of dnsmasq or even