Re: howto know if a query was delegated to cache

2011-07-26 Thread harish badrinath
Hello, I have posted a "patch" at https://lists.isc.org/pipermail/bind-workers/2011-July/003061.html. It might be a hack but it does the job and passed some simple tests that i did to verify the functionality that i wanted. The patch is against BIND 9.7.1-P2 Regards, Harish _

Re: Forward only zones.

2011-07-26 Thread harish badrinath
On Mon, Jul 25, 2011 at 7:53 PM, Vbvbrj wrote: > > I just can't for now move active directory's dns database to BIND. > You could use something much simpler like dnsmasq (http://thekelleys.org.uk/dnsmasq/doc.html). Setting it up as a DNS forwarder is a breeze, while you migrate DNS data away from

Re: howto know if a query was delegated to cache

2011-07-26 Thread harish badrinath
> Whatever you're trying to accomplish, it's would not appear to be consistent > with the founding RFCs for DNS: I am not trying to modify when/how/which "upstream name server" is contacted, i am not invalidating cached data at my will. I am not trying to modify requests/responses. Basically i am

Re: howto know if a query was delegated to cache

2011-07-25 Thread harish badrinath
> Have you seen the flags? the first has an "aa" flag set, while the > second doesn't have. Instead it has a "ra" flag set. Sorry for my > before post to write wrong with "rr" flag. Sorry for the confusion, I was talking about internal cache (db) instead of public recursive servers/authoritative se

Re: howto know if a query was delegated to cache

2011-07-25 Thread harish badrinath
Hello, On Mon, Jul 25, 2011 at 6:03 PM, Feng He wrote: > There is a "rr" flag in the response which indicates the answer is not > from a cache. Could you please elaborate. Is the flag passed to the client ?? Attached are two calls to bind, to resolve www.google.com I have use the command dig www

Re: Can't create Symbol Table

2011-07-25 Thread harish badrinath
Hello, On Mon, Jul 25, 2011 at 4:11 PM, Vignesh Gadiyar wrote: > Hi, > ../../lib/dns/libdns.a(rdataset.o): In function `towiresorted': > /home/user1r/bind-9.8.0-P2/lib/dns/rdataset.c:500: undefined reference to > `custom_order_api' Change Makefile rules to tell gcc, when its compiling rdataset.o,

howto know if a query was delegated to cache

2011-07-25 Thread harish badrinath
(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 fr