AdGuardHome icon indicating copy to clipboard operation
AdGuardHome copied to clipboard

Two DNS Rewrite Rules for Wildcard Domains Are Not Working

Open akinomeroglu opened this issue 1 year ago • 3 comments

Prerequisites

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

akinomeroglu avatar Feb 22 '25 17:02 akinomeroglu

I have this exact question. Curious to know if you found any solutions.

jenks6797 avatar Sep 05 '25 19:09 jenks6797

Same issue. Returns multiple IPs for a single domain, but returns only the first IP for a wildcard domain

constgen avatar Mar 31 '26 21:03 constgen

Could you please tell me exactly what kind of rewrites you're referring to? Is this issue still relevant to you today?

sofvaskina avatar Sep 10 '26 14:09 sofvaskina