Skip to content

Conversation

@Melidee
Copy link
Contributor

@Melidee Melidee commented Jun 7, 2025

This PR adds domain name resolution to armada using the standard library (String, u16).to_socket_addrs() function. The README has been updated to show the new behavior.
I decided to add the resolution to armada instead of armada_lib because this change was super simple and adding it to armada lib seemed like it would be much more complex and have breaking changes, and any libraries using armada_lib can add resolution themselves somewhat easily.

Also included in this PR is the removal of the deprecated rand::thread_rng().gen_range(), replacing it with the updated rand::random_range() function.

Closes #2

@Melidee
Copy link
Contributor Author

Melidee commented Jun 7, 2025

One known issue with this is the output still displays the IP, not the domain, even if a domain is provided. I will probably go back through and fix this, probably adding ip-only output as an option in case people are chaining armada to tools that don't support host resolution.

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.

Host resolution support

1 participant