<div dir="auto"><div>This could do.</div><div dir="auto">I just have to get those counters.</div><div dir="auto"><br></div><div dir="auto">Thanx,</div><div dir="auto">Abi<br><div class="gmail_extra" dir="auto"><br><div class="gmail_quote">On Jul 18, 2017 18:37, "Matthew Seaman" <<a href="mailto:m.seaman@infracaninophile.co.uk">m.seaman@infracaninophile.co.uk</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="elided-text">On 07/18/17 16:09, Abi Askushi wrote:<br>
> I am trying to figure out how could I account the DNS traffic generated<br>
> from clients in terms of bytes. My setup is a simple caching DNS with<br>
> several clients querying the DNS server. I can measure the DNS traffic<br>
> that is generated from the DNS server on the WAN side by using some<br>
> monitoring tool (pmacct) but I am not sure how could I account this traffic<br>
> to the clients that are generating this traffic. By simply monitoring the<br>
> internal DNS traffic from clients I expect to not be accurate since it will<br>
> include also cached responses which do not generate WAN traffic.<br>
><br>
> Any suggestion how to approach this problem?<br>
<br>
</div>The implication of what you're suggesting is that if client A looks up<br>
some address that isn't in the cache, then they will be charged for<br>
that. However, if client B then comes along and looks up the exact same<br>
address shortly afterwards, they'll get a response from cache and so not<br>
be charged. That seems a bit arbitrary.<br>
<br>
Why not charge your clients based simply on the number of queries they<br>
make against your resolver? You know or can easily find out how many<br>
queries your resolver is handling in total and how much the WAN traffic<br>
that generates is costing you so it should be fairly easy to come up<br>
with a charging scheme based on the average cost per DNS query.<br>
<br>
Cheers,<br>
<br>
Matthew<br>
<br>
<br>______________________________<wbr>_________________<br>
Please visit <a href="https://lists.isc.org/mailman/listinfo/bind-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/<wbr>listinfo/bind-users</a> to unsubscribe from this list<br>
<br>
bind-users mailing list<br>
<a href="mailto:bind-users@lists.isc.org">bind-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/bind-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/<wbr>listinfo/bind-users</a><br></blockquote></div><br></div></div></div>