Internally, we have www.ourdomain.com on one IP address and mail.ourdomain.com and ftp.ourdomain.com sitting on another same IP address.
We used to resolve them through Unbound's domain and host overrides.
I have good understanding of Unbound but zero knowledge of Dnsmasq, so when I migrated to Dnsmasq, I thought that the same setup should have been achieved by initially creating the following records:
*, ourdomain.com, alias=www, 192.168.31.2
mail, ourdomain.com, alias=ftp, 192.168.31.3
When I dig for www, it resolves correctly to the .2 IP.
When I dig for mail, it resolves correctly to the .3 IP.
When I dig for ftp, it resolves to the same www .2 IP.
Only when I removed the ftp alias from the mail host and created another ftp host did it resolve correctly.
mail, ourdomain.com, 192.168.31.3
ftp, ourdomain.com, 192.168.31.3
Why would the www alias on * work but not the ftp alias on mail?