<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
Hello!</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
I have dnsdist deployed centrally to route DNS queries to various backends:</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
newServer({</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
address='192.168.100.10',</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
name='backend1',</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
})</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
newServer({</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
address='192.168.100.20',</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
name='backend2',</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
})</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
In this setup, I use caching as follows:</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
cache_all_queries = newPacketCache(2000000, {maxTTL=86400, minTTL=0, temporaryFailureTTL=60, staleTTL=60})</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
getPool(""):setCache(cache_all_queries)</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
I would now need to disable caching for certain servers that issue a DNS query. Is there a rule for this or any other option?</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
Regards,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
Andreas<br>
</div>
<div id="Signature"></div>
</body>
</html>