[Dnsmasq-discuss] No cache for CNAME records that point to the host's address

Janos.Mattyasovszky at bmw.de Janos.Mattyasovszky at bmw.de
Fri Jan 2 09:43:17 GMT 2015


Hi,

Happy new year at the very beginning!

I derived a patch against the git tag v2.72 for that particular commit and built my own 2.72 with the patch on top, and it works as we expected it:

First try with nothing cached:
Jan  2 10:35:32 dnsmasq[8021]: query[A] itavm0002test.muc from 127.0.0.1
Jan  2 10:35:32 dnsmasq[8021]: forwarded itavm0002test.muc to 160.XXX.XXX.2
Jan  2 10:35:32 dnsmasq[8021]: reply itavm0002test.muc is <CNAME>
Jan  2 10:35:32 dnsmasq[8021]: reply itavm0002.muc is 10.XXX.XXX.102

Second try:
Jan  2 10:35:38 dnsmasq[8021]: query[A] itavm0002test.muc from 127.0.0.1
Jan  2 10:35:38 dnsmasq[8021]: cached itavm0002test.muc is <CNAME>
Jan  2 10:35:38 dnsmasq[8021]: /etc/hosts itavm0002.muc is 10.XXX.XXX.102

This is also confirmed by tcpduming DNS traffic, and on the second try there is no query sent to the upstream DNS server.

Many thanks!

Cheers,
Janos

-- 
BMW Group
Janos Mattyasovszky
Linux Solutions
FG-941 Unix/Linux Server Infrastructure

Postanschrift:
Bremer Strasse 6
80788 München

Tel: +49-89-382-13280
Mail: janos.mattyasovszky at bmw.de
Web: http://www.bmwgroup.com/
--------------------------------------------------------------------
Bayerische Motoren Werke Aktiengesellschaft
Board of Management: Norbert Reithofer, Chairman,
Milagros Caiña Carreiro-Andree, Klaus Draeger, 
Friedrich Eichiner, Klaus Fröhlich, Harald Krüger,
Ian Robertson, Peter Schwarzenbauer.
Chairman of Supervisory Board: Joachim Milberg
Registered in Germany: München HRB 42243
--------------------------------------------------------------------

-----Original Message-----
From: Simon Kelley [mailto:simon at thekelleys.org.uk] 
Sent: Sonntag, 21. Dezember 2014 22:31
To: Mattyasovszky Janos, FG-941; dnsmasq-discuss at thekelleys.org.uk
Subject: Re: [Dnsmasq-discuss] No cache for CNAME records that point to the host's address

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Try the dnsmasq git repo, and specifically this commit, which should
fix things.


Cheers,

Simon.


http://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commitdiff;h=cbc652423403e3cef00e00240f6beef713142246





More information about the Dnsmasq-discuss mailing list