I have always used dnsmasq to point a subdomain to my local dev machine at the router/network level.
address=/dev.example.com/192.168.1.80
I have now setup two vlan interfaces for other purposes (i.e. guest network). I need to be able to use different nameservers on each lan, which I also accomplished using dnsmasq.
dhcp-option=br0,6,208.67.222.123,208.67.220.123
dhcp-option=br1,6,208.67.222.222,208.67.220.220
dhcp-option=br2,6,208.67.222.123,208.67.220.123
However, once this configuration is in place, the address
directive no longer works. It appears this dhcp config will be used for dns resolution above everything else, so requests for the dev subdomain reach out to the internet rather than my local ip as before. For good measure, I have tried moving the address directive before and after the dhcp config. It makes no difference.
Is there a way to assign per interface dns servers and use the address directive, or to accomplish the same behavior some other way?
In case it helps, I am using AdvancedTomato firmware.