Skip to content

Improved IPv6 support.#3678

Merged
xmrig merged 1 commit into
devfrom
dns_ip_version
Jun 20, 2025
Merged

Improved IPv6 support.#3678
xmrig merged 1 commit into
devfrom
dns_ip_version

Conversation

@xmrig

@xmrig xmrig commented Jun 20, 2025

Copy link
Copy Markdown
Owner

The default behavior for DNS requests now treats IPv4 and IPv6 equally, with the option to prioritize one while fallback to IPv4 if necessary.

Option "ipv6" in "dns" object replaced to "ip_version" with possible values: 4 (IPv4), 6 (IPv6), or 0 (no preference). Option 6 is not strict; if no IPv6 records are found, it will automatically fallback to IPv4. In contrast, option 4 is strict and will only use IPv4 records.

Command line option --dns-ipv6 replaced to -4, --ipv4 and -6, --ipv6.

Other improvements:

  • If multiple addresses are received, they will be used sequentially, starting from a random address instead of being fully random before.
  • DNS errors are cached too.

@xmrig xmrig added this to the v6 milestone Jun 20, 2025
@xmrig xmrig merged commit 9fa66d3 into dev Jun 20, 2025
@xmrig xmrig mentioned this pull request Jun 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant