I think it would be good to have a Lookup constructor with the resolver as parameter. If you what to use a own resolver this would avoid to set it seperatly.
Setting it separately is a single, trivial call to Lookup.setResolver() for each query. If you want to use a custom resolver for all queries, it's a single call to Lookup.setDefaultResolver() that's not per-query.
Using a different resolver for a single query is not common enough or important enough to warrant a custom constructor.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Setting it separately is a single, trivial call to Lookup.setResolver() for each query. If you want to use a custom resolver for all queries, it's a single call to Lookup.setDefaultResolver() that's not per-query.
Using a different resolver for a single query is not common enough or important enough to warrant a custom constructor.
Ticket moved from /p/dnsjava/feature-requests/20/