Bug 226

Summary: unbound-control dump_requestlist
Product: unbound Reporter: Mark Zealey <mark.zealey>
Component: serverAssignee: unbound team <unbound-team>
Status: RESOLVED FIXED    
Severity: enhancement CC: wouter
Priority: P2    
Version: 1.1.1   
Hardware: All   
OS: All   

Description Mark Zealey 2009-01-08 12:37:46 CET
It would be really useful to be able to see a snapshot of the contents of the requestlist. It doesn't have to be coherent, but in order to debug what requests are taking a long time, it would be useful to have a command like unbound-control dump_requestlist which provides a list of requests, the time they have been in the list and what their status currently is eg:

# unbound-control dump_requestlist
User query type/domain  secs   current status
A? fred.wilma.com.      50.6   waiting for response from 1.2.3.4 for NS? wilma.com.
...

I'm not sure how the requestlists are structured internally so it may be that there need to be multiple commands, one for the inbound requests and one for the outbound requests, however I think the above would summarize both pretty well.

Thanks,

Mark
Comment 1 Wouter Wijngaards 2009-02-10 16:11:57 CET
In current svn trunk it is implemented.
Looks like this:
430  PTR IN 231.221.143.91.in-addr.arpa. 13.338777 iterator wants A IN ns.ikomline.net. A IN ns2.zrlocal.net. AAAA IN ns.ikomline.net. AAAA IN ns2.zrlocal.net.
431   MX IN www.intel.com. 13.338777 iterator wait for 192.35.51.30

Best regards,   Wouter