Dnsmasq custom configuration file

Started by Lokomass, August 26, 2025, 07:01:05 AM

Previous topic - Next topic
Hi,
I m trying to create a dnsmasq custom config file lile documentation say :  https://docs.opnsense.org/manual/dnsmasq.html#advanced-settings

In the file /usr/local/etc/dnsmasq.d/custom.conf

I have tested this file with dnsmasq debian, but its not working with opnsense....

dhcp-mac=set:vm,BC:24:11:*:*:*
dhcp-mac=set:vm,08:00:27:*:*:*

dhcp-range=set:dhcp,192.168.10.1,192.168.10.9
dhcp-range=tag:vm,192.168.10.10,192.168.10.20

dhcp-option=tag:vm,6,1.1.1.1,192.168.10.254
dhcp-option=tag:dhcp,6,192.168.10.240,192.168.10.254

dhcp-host=08:00:27:b5:ab:38,set:dhcp,192.168.10.111,infinite


Whats I m doing wrong ? Thanks