mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2026-03-04 00:01:12 -05:00
DNS rewrite rule is not working as expected. #3698
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#3698
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 @hezhijie0327 on GitHub (May 27, 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.
Issue Details
Expected Behavior
For example,
example.orgDNS record is1.2.3.4. Use the following rewrite rules.The final answer of
example.netis1.2.3.4not2.4.6.8.Actual Behavior
The final answer should be
2.4.6.8.Screenshots
Screenshot:
Additional Information
@ainar-g commented on GitHub (May 30, 2022):
Hello. AdGuard Home doesn't currently follow CNAME chains with
dnsrewriterules. You can mitigate that by adding the address of your AdGuard Home as the upstream forexample.org:@hezhijie0327 commented on GitHub (May 30, 2022):
It's worked for most scenario. But if the rule contains a specific client, it will not effect.
This will break the query from other clients.
[/example.org/]192.168.X.Ythis should be the work around solution, is there any plan to letdnsrewritesupport it?@ainar-g commented on GitHub (May 31, 2022):
You can use client-specific upstream settings for that. Although that might cause caching issues, see AdguardTeam/dnsproxy#169.
The CNAME chains will probably be implemented during #2499. I'll merge this feature request into that one.
@rfgamaral commented on GitHub (Nov 19, 2022):
@ainar-g Any plans on implementing this feature soon? The upstream dns work around doesn't work for me, because I need these rules to be applied to specific clients only, and not all of them.