[Dnsmasq-discuss] CNAME not added in dns cache

Simon Kelley simon at thekelleys.org.uk
Sat Jul 14 22:20:20 BST 2012


On 14/07/12 17:23, Atul Gupta wrote:
> 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.
>


Atul,

Is there in domain name that can be used to reproduce this bug?

Simon.



More information about the Dnsmasq-discuss mailing list