Configuring multiple local domains in dnsmasq?

Is it possible to configure multiple local domains in dnsmasq so that for example both

router.lan
router.internal
ap.lan
ap.internal

would resolve automatically to their assigned IPs?

I have dnsmasq setup to correctly resolve one domain like router.lan, etc, but can't figure out how to get multiple domains resolving locally.

So far I've tried things like adding list local '/lan/internal/', adding dhcp option 119,lan,internal, list rebind-domain to dhcp config, but these don't seem to work

Thanks in advance!

According to the user guide https://openwrt.org/docs/guide-user/base-system/dhcp,

" local and domain enable dnsmasq to serve entries in /etc/hosts, as well as DHCP client's names if configured under lan domain."

So I think you should be able to list all the IP addresses and their short names and FQDN in the hosts file and do a service dnsmasq restart to put them into effect. I think this worked for me a couple years ago but I can't be sure now.

An example entry in the /etc/hosts file:
192.168.0.11 ap ap.lan ap.internal

If it does not work for you, then I apologize for the attempted help without a specific fix. I have reasons for not restarting my dnsmasq to test this.

That wiki page shows more options that relate.

Looking at a subset of dnsmasq command line options dnsmasq --help | grep host show some other potential ways. Try that then look at the more extensive documentation at https://thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html and see if any that you like are implemented in OpenWrt.