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

Specify IP version on dual-stack #43

Open
MeganerdNL opened this issue Jan 8, 2023 · 2 comments
Open

Specify IP version on dual-stack #43

MeganerdNL opened this issue Jan 8, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@MeganerdNL
Copy link

MeganerdNL commented Jan 8, 2023

Is it possible (to implement) to specify what IP version to use when on dual-stack? It seems to me that it now uses the first result from a DNS query of the used server. It is useful for me to specify if I want to use IPv4 or IPv6. This is probably similar or the same as #12

@ameshkov ameshkov added the enhancement New feature or request label Jan 8, 2023
@ameshkov
Copy link
Owner

ameshkov commented Jan 8, 2023

Currently it always prefers IPv4 when it's available.

There's an option to override it if you use a DNS stamp as a server address.

Here's an example, a DNS query to tls://dns.google which uses 8.8.8.8 specifically:

dnslookup example.org sdns://AwcAAAAAAAAABzguOC44LjgACmRucy5nb29nbGU

@MeganerdNL
Copy link
Author

MeganerdNL commented Jan 9, 2023

Thanks, that is very helpful for now and works as you described!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants