[Dnsmasq-discuss] not getting a subnet-mask in dhcp reply, when using multiple instance of dnsmasq

AleksM a+dnsmasq at alek.cx
Tue Sep 19 14:01:45 UTC 2023


nevermind :-) I ended up finding out from the openwrt forum post
<https://forum.openwrt.org/t/dhcp-being-stubborn-keep-getting-wrong-subnet-ip-even-with-a-static-lease-set-up/171987/13>
i made that the cause of this ended up being me trying to use
dhcp-option-force in the multi-instance deployment vs the single one..
apologies for the noise!

On Tue, 19 Sept 2023 at 14:24, AleksM <a+dnsmasq at alek.cx> wrote:

> Hi all,
>
> I'm running on OpenWRT (SNAPSHOT r23935+13-c1206675a4) which has
> installed dnsmasq 2.89 and my client is a macbook running MacOS 12.3.1 and I
> recently switched from a single dnsmasq instance to a multi-instance dnsmasq
> setup (because i wanted a different subdomain name given for the different
> networks i have dnsmasq listen on and that was the approach suggested in
> openwrt forum),
>
> But when i performed this change, i found out (after many days of
> troubleshooting) that the dhcp response no longer contained a subnet-mask
> field (which was causing my client to use the default /16 for a classful
> CIDR of that address space, which caused connectivity issues that were
> hilariously baffling at first).
>
> Is there some bug here, or am I doing something wrong?
>
> Attaching both the single-instance dnsmasq.conf (working) and the
> DHCPOFFER response as well as the offending instance in the multi-instance
> dnsmasq.conf (broken) and the DHCPOFFER response, where the subnet-mask
> option is omitted (despite me attempting to add it as an extra DHCPOPTION
> #1 even!)
>
> Any advice or anything else to look at?
>
> Warm regards,
> Aleks
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20230919/fa399bd3/attachment-0001.htm>


More information about the Dnsmasq-discuss mailing list