Skip to content

Add --resolve flag for overriding DNS resolution #327

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

Merged
merged 13 commits into from
Nov 12, 2023
Merged

Conversation

ducaale
Copy link
Owner

@ducaale ducaale commented Oct 1, 2023

Resolves #317

@ducaale ducaale marked this pull request as ready for review November 11, 2023 19:27
ducaale and others added 2 commits November 11, 2023 20:47
Co-authored-by: Jan Verbeek <jan.verbeek@posteo.nl>
Co-authored-by: Jan Verbeek <jan.verbeek@posteo.nl>
@blyxxyz
Copy link
Collaborator

blyxxyz commented Nov 11, 2023

curl additionally supports enclosing the IP address in brackets, e.g. --resolve example.org:80:[::1]. This is by analogy with IPv6 addresses in URLs (http://[::1]). It happens to work with IPv4 addresses as well.

--resolve example.org:::1 does look confusing so maybe we should support it too. I'd prefer to limit it to IPv6 addresses though.

Copy link
Collaborator

@blyxxyz blyxxyz left a comment

Choose a reason for hiding this comment

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

Works great!

ducaale and others added 2 commits November 12, 2023 17:44
@ducaale ducaale merged commit 1a74a52 into master Nov 12, 2023
@ducaale ducaale deleted the resolve-flag branch November 12, 2023 17:56
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.

Alternative for cURL --resolve flag
2 participants