[Dnsmasq-discuss] dnsmasq cname limitations
Salatiel Filho
salatiel.filho at gmail.com
Sat Nov 6 19:11:33 UTC 2021
Hi, why does dnsmasq cname require an entry on /etc/hosts?
I would like to override "somedomain.com" to "some-load-balancer.com"
as a CNAME.If I start dnsmasq as:
# dnsmasq -dq -r /etc/resolv.upstream --cname
somedomain.com,some-load-balancer.com
If I try to ping somedomain.com, I will get :
ping: unknown host somedomain.com
If I try to nslookup somedomain.com
Server: 127.0.0.1
Address: 127.0.0.1#53
somedomain.com canonical name = some-load-balancer.com.
So I would expect that to work. Is there a reason for that not being
allowed by dnsmasq? Security reasons somehow ?
I have a scenario where I need to make a container for a legacy
application point somedomain.com ( hardcoded ) to an external
loadbalancer's CNAME whose IP is, of course, dynamic and I can not
add it to /etc/hosts.
Thanks!
More information about the Dnsmasq-discuss
mailing list