AdGuardHome icon indicating copy to clipboard operation
AdGuardHome copied to clipboard

DNS rewriting

Open nicelic opened this issue 1 month ago • 3 comments

Prerequisites

  • [x] I have checked the Wiki and 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

The local network supports both IPv4 and IPv6 dual-stack networking. However, due to the lack of support for IPv6 from network operators and other service providers, slow access and disconnections frequently occur. Therefore, AdGuardHome DNS settings disable IPv6 resolution.

However, some services only enable IPv6 and not IPv4. In these cases, DNS resolution fails. Even after entering the IPv6 address for the domain in DNS rewriting, only an invalid IPv4 address is returned, not an IPv6 one. Is it possible to improve the DNS rewriting level so that even if the user has disabled IPv6 resolution, the DNS rewriting process still returns an IPv6 address to the client? Additionally, is it possible to allow batch input of IP addresses for DNS rewriting, allowing multiple IP addresses to be entered for a single domain name?

Proposed solution

Alternatives considered and additional information

No response

nicelic avatar Nov 10 '25 17:11 nicelic

Can you better explain what you're trying to achieve? Having v6 disabled but then returning v6 addresses, even via rewrite, seems like two conflicting ideas.

Your request seems like a very niche thing you want. I fully disagree with "owever, due to the lack of support for IPv6 from network operators and other service providers, slow access and disconnections frequently occur." - It tends to work or it doesn't if you have end-to-end IPv6 connectivity.

Anyway if you could clarify the feature request in more detail - as it stands it's a little confusing and seems to be two requests in one?

Thanks!

tjharman avatar Nov 10 '25 18:11 tjharman

Oh, my description wasn't very clear. I've set up AdGuardhome, and I need to disable IPv6 resolution in my DNS settings (IPv6 resolution is already enabled because my internet provider has poor IPv6 support; for example, using IPv6 causes videos to load slowly or not at all, while IPv4 doesn't have this problem).

However, some specific services only support IPv6 access, or are only available in IPv6. But because I've disabled IPv6 resolution in my DNS settings—the DNS resolution results don't return IPv6 (and the IPv6 resolution I rewrote in DNS is also lost), so I can't access this specific service.

Therefore, I'm asking this question: disabling IPv6 resolution in DNS settings, and enabling this function, will discard all IPv6, including the IPv6 resolution set in DNS rewriting. Is it possible that if the user has set up DNS rewriting, then all the returned domain names will be the user-defined domain name resolution, and disabling IPv6—doesn't affect DNS rewriting?

Tim Harman @.***> 于2025年11月11日周二 02:54写道:

tjharman left a comment (AdguardTeam/AdGuardHome#8104) https://github.com/AdguardTeam/AdGuardHome/issues/8104#issuecomment-3513422260

Can you better explain what you're trying to achieve? Having v6 disabled but then returning v6 addresses, even via rewrite, seems like two conflicting ideas.

Your request seems like a very niche thing you want. I fully disagree with "owever, due to the lack of support for IPv6 from network operators and other service providers, slow access and disconnections frequently occur."

  • It tends to work or it doesn't if you have end-to-end IPv6 connectivity.

Anyway if you could clarify the feature request in more detail - as it stands it's a little confusing and seems to be two requests in one?

Thanks!

— Reply to this email directly, view it on GitHub https://github.com/AdguardTeam/AdGuardHome/issues/8104#issuecomment-3513422260, or unsubscribe https://github.com/notifications/unsubscribe-auth/BLA2GQOQIDT2T2MNQOV4Z5L34DNPDAVCNFSM6AAAAACLV3L7HWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTKMJTGQZDEMRWGA . You are receiving this because you authored the thread.Message ID: @.***>

nicelic avatar Nov 11 '25 06:11 nicelic

If have no plans, please close this issue directly.

licc loce @.***> 于2025年11月11日周二 14:38写道:

Oh, my description wasn't very clear. I've set up AdGuardhome, and I need to disable IPv6 resolution in my DNS settings (IPv6 resolution is already enabled because my internet provider has poor IPv6 support; for example, using IPv6 causes videos to load slowly or not at all, while IPv4 doesn't have this problem).

However, some specific services only support IPv6 access, or are only available in IPv6. But because I've disabled IPv6 resolution in my DNS settings—the DNS resolution results don't return IPv6 (and the IPv6 resolution I rewrote in DNS is also lost), so I can't access this specific service.

Therefore, I'm asking this question: disabling IPv6 resolution in DNS settings, and enabling this function, will discard all IPv6, including the IPv6 resolution set in DNS rewriting. Is it possible that if the user has set up DNS rewriting, then all the returned domain names will be the user-defined domain name resolution, and disabling IPv6—doesn't affect DNS rewriting?

Tim Harman @.***> 于2025年11月11日周二 02:54写道:

tjharman left a comment (AdguardTeam/AdGuardHome#8104) https://github.com/AdguardTeam/AdGuardHome/issues/8104#issuecomment-3513422260

Can you better explain what you're trying to achieve? Having v6 disabled but then returning v6 addresses, even via rewrite, seems like two conflicting ideas.

Your request seems like a very niche thing you want. I fully disagree with "owever, due to the lack of support for IPv6 from network operators and other service providers, slow access and disconnections frequently occur." - It tends to work or it doesn't if you have end-to-end IPv6 connectivity.

Anyway if you could clarify the feature request in more detail - as it stands it's a little confusing and seems to be two requests in one?

Thanks!

— Reply to this email directly, view it on GitHub https://github.com/AdguardTeam/AdGuardHome/issues/8104#issuecomment-3513422260, or unsubscribe https://github.com/notifications/unsubscribe-auth/BLA2GQOQIDT2T2MNQOV4Z5L34DNPDAVCNFSM6AAAAACLV3L7HWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTKMJTGQZDEMRWGA . You are receiving this because you authored the thread.Message ID: @.***>

nicelic avatar Nov 11 '25 06:11 nicelic