Hi,<div><br></div><div>I have seen issue that many times a CNAME is not added in dns cache. Issue is more visible when there is a chain of CNAMEs pointing to an ip address </div><div><br></div><div>e.g.</div><div><br></div>
<div>Domain name A ---> CNAME B</div><div><br></div><div><br></div><div>CNAME B---> CNAME C</div><div><br></div><div>CNAME C---> CNAME D</div><div><br></div><div>CNAME D ---> Some ip address </div><div><br></div>
<div>In above example Both C and D are added in Cache, But B is not added. So any request for A , needs to be resolved by dnsmasq from beginning and no advantage of cache in this case.</div>
<div><br></div><div><br></div><div>Looking deep into this problem, i found that while adding any entry in cache , dnsmasq checks if flag F_IPV4 or F_IPV6 is associated with an entry, then only it adds it in cache otherwise it ignores this. in above example F_IPV4 flag is set for CNAME C and D, so they are added but not set for B.</div>
<div> </div><div><br></div><div>Has anyone else faced similar issue? Is there any harm in setting flag = F_IPV4 | F_IPV6 for CNAME B as well.</div><div><br></div><div><br></div><div>Looking forward for a reply in this.</div>
<div><br></div><div>Regards,</div><div>Atul.</div><div><br></div><div>PS :- I am using latest dnsmasq package.</div>