Static lease dnsmasq instance bugs?

Hi

I have set up multiple instances of dnsmasq (Kids_dns and Adults_dns) but when I go into the section dhcp and dns in luci the static leases listed under on both instances.

It is just weird it lists a static lease for an interface that is not even in the Ip address range of the dhcp pool for that instance.

Under kids dns instance I have a static lease of 192.168.2.1 for and the pool is 192.168.2.0/24
under Adults dns instance I have the same lease listed of 192.168.2.1 and the pool is 192.168.1.0/24

I have not tried it but if i were to create a static lease for a device in the host section for each instance with differing static ip adresses but he host and the mac being the same would this cause an issue ? example below

config host
	option dns '1'
	option name 'taynepc'
	option mac '34:41:5D:0A:52:2B'
	option ip '192.168.2.167'

config host
	option dns '1'
	option name 'taynepc'
	option mac '34:41:5D:0A:52:2B'
	option ip '192.168.1.167'

I would guess it should only list the lease in the correct instance is this just a bug?

I see i have the option to set in the host section (instance) to bind the lease to an instance but it still shows up in luci as leases in both instances.
The option to set the lease to a specific instance does not apear in Luci and it looks like i can only configure this via config editing..

also there seems to be a bug that all the dhcp pool lease data is only displayed in the first instance when devices are connected to both pools and again lists devices in an incorect pool in that instance outside of that instances dhcp pool range.

is this below the correct way to bind a lease to an instance ?

config host
	option dns '1'
	option name 'taynepc'
	option mac '34:41:5D:0A:52:2B'
	option ip '192.168.2.167'
        option instance 'Kids_Dns'

config host
	option dns '1'
	option name 'taynepc'
	option mac '34:41:5D:0A:52:2B'
	option ip '192.168.1.167'
        option instance 'Adults_Dns'

LuCI does not fully support multiple dnsmasq instances. If you use them, ui behavior is undefined.

3 Likes

Ok thanks I was thinking I had something set wrong or it was not using a second instance of dnsmasq which comes to my other issue.

In adblock it says that it binds to the first instance but in my case adblock seems to be active on both the adults and kids dnsmasq instance is there a way to disable adblock on a specific dnsmasq instace?