Bug 226 - unbound-control dump_requestlist
unbound-control dump_requestlist
Status: RESOLVED FIXED
Product: unbound
Classification: Unclassified
Component: server
1.1.1
All All
: P2 enhancement
Assigned To: unbound team
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-01-08 12:37 CET by Mark Zealey
Modified: 2009-02-10 16:11 CET (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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