>>> Or is your router not the same device where your dnsmasq is running on? >> Exactly. Have you considered running the dhcp relay agent on the router instead of the L2 switch? This approach often offers much more flexibility and capability.