<div dir="ltr">Ah perfect, there goes my Sunday :)<div><br></div><div>Thank You Aki</div><div>AJ</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 1 February 2015 at 08:14, Aki Tuomi <span dir="ltr"><<a href="mailto:cmouse@youzen.ext.b2.fi" target="_blank">cmouse@youzen.ext.b2.fi</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Sun, Feb 01, 2015 at 02:41:07AM +0000, AJ McKee wrote:<br>
> Being the weekend, I decided to write a HTTP backend for pdns as a fun<br>
> thing to do.<br>
><br>
> One thing springs to mind however are the packet and query cache. In<br>
> particular, how they cache.<br>
><br>
> Do they use the remote clients ip as part of the caching key, thus only<br>
> serving from the cache if the client is repeatedly asking? AFAIK this is<br>
> not the case.<br>
><br>
><br>
> If I added simple bind style views to my backend, would this be pointless?<br>
><br>
> My thinking here, if a request came from netblock A and it was cached,<br>
> followed by a request from netblock C, C would get the cached answer<br>
> instead of querying the backend for its corrected view.<br>
><br>
> Is there a way that the remote backend can influence the cache in the<br>
> response it sends back?<br>
><br>
> I am aware of all the other backend, this is just my fun-time thing to play<br>
> with the new features.<br>
><br>
> Thanks in advance<br>
><br>
> --<br>
> AJ McKee<br>
> phone: <a href="tel:%2B353%2083%201130%20545" value="+353831130545">+353 83 1130 545</a><br>
> profile: <a href="http://linkedin.com/in/ajmkee" target="_blank">http://linkedin.com/in/ajmkee</a><br>
> jid: <a href="mailto:aj.mckee@druid-dns.com">aj.mckee@druid-dns.com</a><br>
> blog: <a href="http://aj.mc-kee.com/" target="_blank">http://aj.mc-kee.com/</a><br>
> twitter: @ajmckee<br>
<br>
</div></div>You can set scopeBits to size of netblock. Should do what you<br>
want.<br>
<span class="HOEnZb"><font color="#888888"><br>
Aki<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">AJ McKee<br>phone: +353 83 1130 545<br>profile: <a href="http://linkedin.com/in/ajmkee" target="_blank">http://linkedin.com/in/ajmkee</a><br>jid: <a href="mailto:aj.mckee@druid-dns.com" target="_blank">aj.mckee@druid-dns.com</a><br>blog: <a href="http://aj.mc-kee.com/" target="_blank">http://aj.mc-kee.com/</a><br>twitter: @ajmckee</div>
</div>