OPNsense Forum

English Forums => 25.7, 25.10 Series => Topic started by: Jyling on November 03, 2025, 02:37:50 PM

Title: Dnsmasq host and alias records
Post by: Jyling on November 03, 2025, 02:37:50 PM
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?