Can I steer hosts to a particular DNSMasq DHCP range

Started by endurium, May 20, 2026, 12:41:57 PM

Previous topic - Next topic
May 20, 2026, 12:41:57 PM Last Edit: May 20, 2026, 06:51:48 PM by endurium
Hi all,

Is there a way to "direct" a host to get it's IP address from a specific DNSMasq address pool (DHCP range)?  I want all hosts within that pool to use ADguard DNS so I've tried tagging a host entry with an "dnsfilter" tag and have also tagged the desired pool with the same tag, but it doesn't seem to work in that the host gets it's dynamic IP from the pool that's tagged "static".
I'm guessing my understanding of tags in DNSMasq is very much lacking so I'm looking for some guidance from the experts in this forum.
TIA
Intel N100 | 6*I226-V | 32GB DDR5 | 512GB NVME | Proxmox 9

Quote from: endurium on May 20, 2026, 12:41:57 PMIs there a way to "direct" a host to get it's IP address from a specific DNSMasq address pool (DHCP range)?
Can't you just use 'Static DHCP Mappings based on the MAC Address' for those hosts with the specific 'DNS Server IP Address' configured in the mapping ?!
Weird guy who likes everything Linux and *BSD on PC/Laptop/Tablet/Mobile and funny little ARM based boards :)

Normally, that would be a scenario for VLANs and different subnets, not ranges.

When you use static mappings for affected clients, you might as well send a specific DNS server IP with the DHCP option response that is different from the default. So strictly speaking, there does not even have to be a "range" for this purpose.
Intel N100, 4* I226-V, 2* 82559, 16 GByte, 500 GByte NVME, ZTE F6005

1100 down / 450 up, Bufferbloat A+