Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --reverse, --file and --interval to util/resolve #1807

Merged
merged 2 commits into from Oct 25, 2022

Conversation

cunha
Copy link
Contributor

@cunha cunha commented Oct 19, 2022

This PR adds:

  • The ability to run reverse lookups. The previous code allowed for reverse lookups but required the user to pass in-addr.arpa hostnames. Passing --reverse makes the conversion automatically.

  • The ability to resolve names given in a file (one name per line).

Happy to make adjustments or integrate any feedback to improve it further.

* Previous code allowed for reverse lookups but required the user to
  pass `in-addr.arpa` hostnames.  Passing `--reverse` makes the
  conversion automatically.

* Minor changes to output to make the query type explicit.
The implementation reads one line of the input file every interval
(default 1s) and asynchronously resolves it.  Results are printed in the
order their responses arrive.

* Added --file and --interval to command-line parameters
* Added clap group directives to mark invalid parameter combinations
* Improved printing of queries and error messages
Copy link
Member

@bluejekyll bluejekyll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These looks like great changes and additions, thank you for taking the time to contribute them!

@bluejekyll bluejekyll merged commit 2e3ec90 into hickory-dns:main Oct 25, 2022
@bluejekyll
Copy link
Member

I'm going to merge as is. I really like the reporting on errors being improved. nice work.

@cunha cunha deleted the resolve-list branch November 19, 2022 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants