[Dnsmasq-discuss] dnsmasq cname limitations

Horn Bucking buckhorn at weibsvolk.org
Sat Nov 6 20:56:34 UTC 2021


 > Hi, why does dnsmasq cname require an entry on /etc/hosts?

>From the dnsmasq man page:

--cname=<cname>,[<cname>,]<target>[,<TTL>]
Return a CNAME record which indicates that <cname> is really <target>. 
There is a significant limitation on the target; it must be a DNS record 
which is known to dnsmasq and NOT a DNS record which comes from an 
upstream server.

A potential workaround would be to recreate the A/AAAA records for the 
CNAME target within dnsmasq.
Of course, that's only viable if the respective IPs are both known and 
not subject to change.





More information about the Dnsmasq-discuss mailing list