Re: [Dnsmasq-discuss] DHCP hosts without active leaes not added to DNS cache

2021-02-23 Thread Dominik Derigs
On Tue, 2021-02-23 at 09:41 +, Simon Kelley wrote: > > This is almost a FAQ. It's intended behaviour, because you can have > multiple DHCP host records for the same MAC address with different > addresses on different subnets. Only the address which matches the > subnet where the host last

Re: [Dnsmasq-discuss] DHCP hosts without active leaes not added to DNS cache

2021-02-23 Thread Simon Kelley
On 23/02/2021 09:13, Dominik Derigs wrote: > Hey list, > > When specifying a DHCP host like > > --dhcp-host=00:20:e0:3b:13:af,192.168.0.2,wap > > I'd expect dnsmasq to respond to `dig wap` with the IP address > `192.168.0.2`. Instead, NOERROR with empty answer RR is returned. > > Looking at

[Dnsmasq-discuss] DHCP hosts without active leaes not added to DNS cache

2021-02-23 Thread Dominik Derigs
Hey list, When specifying a DHCP host like --dhcp-host=00:20:e0:3b:13:af,192.168.0.2,wap I'd expect dnsmasq to respond to `dig wap` with the IP address `192.168.0.2`. Instead, NOERROR with empty answer RR is returned. Looking at the source code, this is expected as `lease_update_dns()` loops