Dnsmasq configuration

Hello

I’d like to host dns server on my local network so I can access my self-hosted web server. I was hoping that all I have to do is to add forward to web server rule like {"domain": "mystuff.local", "server": "192.168.1.40"} and set up on my router dns server to point to home assistant ip’s.

Since it doesn’t work, what’s wrong about this approach?