OPNsense Forum

English Forums => 25.7, 25.10 Series => Topic started by: EFaden on December 09, 2025, 08:06:57 PM

Title: DNSMasq Two Ranges One Static and One Dynamic with Domain Names
Post by: EFaden on December 09, 2025, 08:06:57 PM
Trying to figure out the correct way to do this coming from ISC DHCPv4.  In ISC I had the dynamic range set to 192.168.0.200-192.168.0.254 and all of my statics below that.  They all got the same domain name lan.mydomain.com.  All worked great.  The issue I am running into is trying to replicate that.  It seems like in DNSMasq you generally place the statics within the range and DHCP just assigned things to the unassigned addresses.  I don't really want that....

I somewhat have it working by just assigning the statics NOT within the range, but the issue is that doesn't set the domain name.  I don't really want to manually set the domain name for each static host, but I cannot seem to figure out how to set a range that is ONLY used for setting the domain name. .... My thought was to have two ranges... one that basically just sets the domain and the other is used for dynamic.  Didn't seem to work.

Any help?
Title: Re: DNSMasq Two Ranges One Static and One Dynamic with Domain Names
Post by: Monviech (Cedrik) on December 09, 2025, 08:37:34 PM
Yeah just enable the advanced mode in the range and change the scope of the domain to interface, in the one range you configure. (you dont need two ranges)