Opened 9 years ago

Last modified 9 years ago

#6474 enhancement new

Allow setting of the recursion_desired (RD) flag in IResolve.query* and/or lookup* methods

Reported by: Richard Wall Owned by:
Priority: normal Milestone:
Component: names Keywords:
Cc: Branch:
Author:

Description

I want to write txdig - a diagnostic tool which can generate both recursive and iterative queries.

The current high level APIs in twisted.names (eg IResolver and common.ResolverBase.lookup) don't allow me to choose this value.

  • Should there be an intermediate API which does provide access to these flags?
  • Should new parameters be added to the IResolver.lookup and query functions?
  • root.Resolver can then unset the recursion_desired flag in the queries it issues to authoritative DNS servers.

Change History (1)

comment:1 Changed 9 years ago by Jean-Paul Calderone

Should new parameters be added to the IResolver.lookup and query functions?

No. Interfaces really shouldn't change.

You can write a new implementation of IResolver that doesn't recurse, if you want.

Note: See TracTickets for help on using tickets.