[Dnsmasq-discuss] Caching issue question

Simon Kelley simon at thekelleys.org.uk
Thu May 31 11:56:15 BST 2012


On 31/05/12 10:48, Nick wrote:
> sql-master.fd.corp (CNAME to 1-sql.poz.fd.corp)
> sql-master.poz.fd.corp (CNAME to 1-sql.poz.fd.corp)
> """
> 
> If I do alternating requests to those both addresses with dig, it seems
> the cache gets overwritten, because dnsmasq does a new query every time
> I execute the dig (in an alternating way). I do normal A queries:
> 

Further to my last reply, after looking at the code, changing this
behaviour is very difficult, but a good workaround would be to make

sql-master.fd.corp  CNAME sql-master.poz.fd.corp
sql-master.poz.fd.corp CNAME 1-sql.poz.fd.corp

That would cache fine (and chained CNAMES are perfectly legal.)


Cheers,

Simon.



More information about the Dnsmasq-discuss mailing list