Two DNS Rewrite Rules for Wildcard Domains Are Not Working
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 report a bug and not ask a question or ask for help
-
[x] 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, AMD64 (aka x86_64)
Installation
Docker
Setup
On a router, DHCP is handled by AdGuard Home
AdGuard Home version
0.108.0-b.63
Action
I am trying to assign domain names to my internal services so that I can access them both inside and outside my home. Due to limitations from my ISP, I cannot open port 443 directly to my home server, and because of this, I am using Tailscale to access my services from outside.
I am trying to add DNS rewrites to achieve this task, but I need to create two entries for every service: one for the internal IP and one for the external IP. I have set up split DNS in Tailscale and added AdGuard for example.com.
When I create two DNS rewrite entries for a specific address, like local.example.com, it works flawlessly. When I use the dig command, my DNS server returns two A records for the same domain, and I can access the service via both Tailscale and the internal IP.
My problem occurs when I try to do the same thing for a wildcard domain like *.local.example.net. It returns only one address in the A record, and I can't achieve the same behavior as with local.example.com. I am not sure if this is a known limitation or a bug. I would be very grateful if you could offer any advice on this matter.
Expected result
I would like to see two different dns responses when I create 2 different rewrite rules for wildcard domains.
Actual result
It returned only the first dns rewrite config.
Additional information and/or screenshots
No response
I have this exact question. Curious to know if you found any solutions.
Same issue. Returns multiple IPs for a single domain, but returns only the first IP for a wildcard domain
Could you please tell me exactly what kind of rewrites you're referring to? Is this issue still relevant to you today?