AdguardTeam / AdguardTeam/AdGuardHome

dns ipv4/ipv6 resolution result prioritization function

未关闭
#6,812 2 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
feature request
主要语言
TypeScript
星标
36.9k
派生
2.5k
PR 合并指标
30 天内没有已合并 PR

描述

### Prerequisites

- [X] I have checked the [Wiki](https://github.com/AdguardTeam/AdGuardHome/wiki) and [Discussions](https://github.com/AdguardTeam/AdGuardHome/discussions) and found no answer

- [X] I have searched other issues and found no duplicates

- [X] I want to request a feature or enhancement and not ask a question

### The problem

My internet carrier provides ipv4 & ipv6 addresses, and I have ipv6 resolution enabled on adguardhome, and my fill-in dns provider supports ipv4 & ipv6 resolution;
But the current adguardhome policy, if a domain has an ipv6 address, it will prioritize ipv6 and ignore ipv4;
In my area, the ipv6 network construction is not too healthy, if the data goes to ipv6 network, its access latency will be much higher than ipv4, but I don't want to turn off ipv6 resolution on my adguardhome.

### Proposed solution

Is it possible to provide such a switch when ipv6 resolution is turned on on adguardhome;
"Prioritize the ipv4 address in the domain resolution address (if it has both ipv4 and ipv6 addresses)"
When this switch is turned on, it will first query if the address has an ipv4 address, if it does it will be responsible for directly accessing the ipv4 address of the domain name, if it doesn't then continue to query if it has an ipv6 address;

### Alternatives considered and additional information

_No response_

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。