-
Couldn't load subscription status.
- Fork 2.2k
Description
Prerequisites
-
I have checked the Wiki and Discussions and found no answer
-
I have searched other issues and found no duplicates
-
I want to report a bug and not ask a question or ask for help
-
I have set up AdGuard Home correctly and configured clients to use it. (Use the Discussions for help with installing and configuring clients.)
Platform (OS and CPU architecture)
Linux, ARMv7
Installation
GitHub releases or script from README
Setup
Other (please mention in the description)
AdGuard Home version
v0.108.0-b.77
Action
- Disable the DHCP server on the router and configure the built-in one to use the local TLD
.lan. - Add a static lease with the hostname
example, so that it can be resolved throughexample.lan. - Add a custom filtering rule:
||example.lan^$dnsrewrite=example.lan
- Query a subdomain of the aforementioned client's hostname:
dig @<AGH> service.example.lan
Expected result
At the very least the proper response with the specified CNAME record should have been returned. Ideally, the actual IP address of the DHCP client would be resolved.
Actual result
;; Question section mismatch: got example.lan/A/IN
Additional information and/or screenshots
The same scheme works works with the real-world domain names. So adding the rule:
||example.org^$dnsrewrite=example.orgmakes the following request:
dig @<AGH> subdomain.example.orgresolve into a proper response with CNAME and the corresponding A records:
;; QUESTION SECTION:
;subdomain.example.org. IN A
;; ANSWER SECTION:
subdomain.example.org. 10 IN CNAME example.org.
example.org. 102 IN A 23.215.0.133
example.org. 102 IN A 23.220.75.235
example.org. 102 IN A 23.220.75.238
example.org. 102 IN A 23.215.0.132