mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2026-03-04 00:01:12 -05:00
Is it possible to return only the ipv6 address when having both ipv4 and ipv6 addresses #3612
Labels
No labels
P1: Critical
P2: High
P3: Medium
P4: Low
UI
bug
cannot reproduce
compatibility
dependencies
docker
documentation
duplicate
enhancement
enhancement
external libs
feature request
good first issue
help wanted
infrastructure
invalid
localization
needs investigation
performance
potential-duplicate
question
recurrent
research
snap
waiting for data
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/AdGuardHome#3612
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @keeker233 on GitHub (Apr 9, 2022).
Have a question or an idea? Please search it on our forum to make sure it was not yet asked. If you cannot find what you had in mind, please submit it here.
Prerequisites
Please answer the following questions for yourself before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.
Problem Description
In the campus network environment, I hope to use ipv6 and use ipv6 as much as possible, but most software and equipment are still given priority to ipv4 in use. Can I set in adguardhome to only return ipv6 addresses for dual-stack URLs which have both ipv4 address and ipv6 address, so that the device can access it as a pure ipv6 website
Proposed Solution
Add an option to adguardhome to return only ipv4 or ipv6 addresses if the url has both ipv4 and ipv6 addresses
Alternatives Considered
Additional Information
At present, I manually set the ipv6 address in dns rewrite, but I cannot easily find the parsed ipv6 address in the query record. Its response is only represented by NOERROR. Is there any convenient way to find the parsed ipv6 address? ipv6 address?
@fernvenue commented on GitHub (Apr 9, 2022):
AdGuardHome can't and shouldn't do that.
As we know, DNS Server's response is based on the client's request type:
A, AdGuardHome will and should response with IPv4 address.AAAA, AdGuardHome will and should response with IPv6 address.So this is clearly a client behavior, you should set Prefer IPv6 on your device or application. And what AdGuardHome can do is drop all request for a specific type, just like
aaaa_disabledinAdGuardHome.yamlnow:By the way, it might make sense to change this feature to a specific type that can be set.