I have multiple LAN interfaces (using VLANs), and I'd like to use a different DNS domain for each. I'm referring to the domain to which DHCP hosts are added to, rather than the DNS search domain list passed back by DHCP.
ie I'd like one subnet to get an xyz.home.arpa suffix and another iot.home.arpa.
-s, --domain=<domain>[[,<address range>[,local]]|<interface>]
Specifies DNS domains for the DHCP server. Domains may be be given unconditionally (without the IP range) or for limited IP ranges. This has two effects; firstly it causes the DHCP server to return the domain to any hosts which request it, and secondly it sets the domain which it is legal for DHCP-configured hosts to claim.
dnsmasq allows this to be specified by DHCP pool or per interface, but I don't see any way to do this in UCI. Is there a way?
That would work, but then can it still be managed from LuCI? eg assigning reserved leases.
The other alternative I see would be to use the dhcp.@dnsmasq.confdir setting to manually add to the dnsmasq configuration. This assumes dnsmasq will do the right thing with a default domain= setting and additional per-interface/range domain= settings.