[Dnsmasq-discuss] CNAME not added in dns cache
Atul Gupta
atul14.kumar at gmail.com
Sat Jul 14 17:23:52 BST 2012
Hi,
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
e.g.
Domain name A ---> CNAME B
CNAME B---> CNAME C
CNAME C---> CNAME D
CNAME D ---> Some ip address
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.
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.
Has anyone else faced similar issue? Is there any harm in setting flag =
F_IPV4 | F_IPV6 for CNAME B as well.
Looking forward for a reply in this.
Regards,
Atul.
PS :- I am using latest dnsmasq package.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20120714/4c3090d8/attachment.html>
More information about the Dnsmasq-discuss
mailing list