[GH-ISSUE #43] Specify IP version on dual-stack #31

Open
opened 2026-03-14 01:06:37 +03:00 by kerem · 2 comments
Owner

Originally created by @MeganerdNL on GitHub (Jan 8, 2023).
Original GitHub issue: https://github.com/ameshkov/dnslookup/issues/43

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

Originally created by @MeganerdNL on GitHub (Jan 8, 2023). Original GitHub issue: https://github.com/ameshkov/dnslookup/issues/43 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
Author
Owner

@ameshkov commented on GitHub (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
<!-- gh-comment-id:1374945935 --> @ameshkov commented on GitHub (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](https://dnscrypt.info/stamps) 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 ```
Author
Owner

@MeganerdNL commented on GitHub (Jan 9, 2023):

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

<!-- gh-comment-id:1376091215 --> @MeganerdNL commented on GitHub (Jan 9, 2023): Thanks, that is very helpful for now and works as you described!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/dnslookup#31
No description provided.