howto know if a query was delegated to cache

Feng He shorttag at gmail.com
Mon Jul 25 12:33:28 UTC 2011


There is a "rr" flag in the response which indicates the answer is not
from a cache.


On Mon, Jul 25, 2011 at 6:14 PM, harish badrinath
<harishbadrinath at gmail.com> wrote:
> (Originally sent to bind-workers, sorry if this is considered cross
> posting. Slightly modified from the original message)
>
> Hello,
>
> I am using Bind version:BIND 9.7.1-P2
>
>
> I am doing some small internal changes to bind and i have to know when
> a query is being answered from internal cache and when from resolvers.
>
> That information doesn’t seem to be recorded in client.attributes or
> client->query.attributes ??
>
> Can any one tell me where the code branches for cached/non cached
> responses in function query_find in the file "bin/named/query.c" *or*
> if the current client was responsible for cache insertion/addition for
> client->query.qname.
>
> I need help, to generate a construct along the lines of,
> if(condition|binary_function == (true|false))
> {
> response was given by cache
> }
>
> *or*
> #define ISFROMCACHE(client/query) ...
>
>
> Regards
> Harish
> _______________________________________________
> Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list
>
> bind-users mailing list
> bind-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/bind-users
>



More information about the bind-users mailing list