Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DNS Rewrites: Mix subdomain and CNAME wildcard #7063

Open
4 tasks done
nfam opened this issue Jun 6, 2024 · 0 comments
Open
4 tasks done

DNS Rewrites: Mix subdomain and CNAME wildcard #7063

nfam opened this issue Jun 6, 2024 · 0 comments

Comments

@nfam
Copy link

nfam commented Jun 6, 2024

Prerequisites

Platform (OS and CPU architecture)

Darwin (aka macOS), AMD64 (aka x86_64)

Installation

Other (please mention in the description)

Setup

On one machine

AdGuard Home version

0.107.50

Action

Run AdguardHome from terminal, bind to 0.0.0.0:53, leave the rest default, then add 3 following DSN Rewrites.

abc.home    1.1.1.1
*.abc.home  abc.home
x.abc.home  2.2.2.2
dig x.abc.home 127.0.0.1

Expected result

; <<>> DiG 9.10.6 <<>> x.abc.home 127.0.0.1
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 10398
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;x.abc.home.			IN	A

;; ANSWER SECTION:
x.abc.home.		10	IN	A	2.2.2.2

Actual result

; <<>> DiG 9.10.6 <<>> x.abc.home 127.0.0.1
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 38526
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;x.abc.home.			IN	A

;; ANSWER SECTION:
x.abc.home.		10	IN	CNAME	abc.home.
abc.home.		10	IN	A	1.1.1.1

Additional information and/or screenshots

If *.abc.home value is set to IP instead of CNAME as following, then the result will be correct as expected.

abc.home.   1.1.1.1
*.abc.home  1.1.1.1
x.abc.home. 2.2.2.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant