DNS Match domains not working - Selfhost #322

Closed
opened 2025-11-20 05:09:35 -05:00 by saavagebueno · 2 comments
Owner

Originally created by @Damix48 on GitHub (May 8, 2023).

Describe the problem
I setup a DNS server and add a match domain the client doesn't use it. If changed to all domains the client use it.

  • Match domain:
; <<>> DiG 9.18.14 <<>> google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 46817
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;google.com.			IN	A

;; ANSWER SECTION:
google.com.		282	IN	A	142.251.209.14

;; Query time: 13 msec
;; SERVER: 8.8.8.8#53(8.8.8.8) (UDP)
;; WHEN: Mon May 08 19:10:53 CEST 2023
;; MSG SIZE  rcvd: 55
  • All domains (note the correct DNS server 100.75.174.247#53) :
; <<>> DiG 9.18.14 <<>> google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 5730
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;google.com.			IN	A

;; ANSWER SECTION:
google.com.		284	IN	A	142.250.180.174

;; Query time: 23 msec
;; SERVER: 100.75.174.247#53(100.75.174.247) (UDP)
;; WHEN: Mon May 08 19:11:29 CEST 2023
;; MSG SIZE  rcvd: 65

To Reproduce

  • Setup a DNS with a match domain.
  • Test using dig.

Expected behavior
The client should use the Netbird DNS for the match domain.

NetBird status -d output:

Peers detail:
 netbird.netbird.selfhosted:
  NetBird IP: 100.75.192.220
  Public key: [---]
  Status: Connected
  -- detail --
  Connection type: Relayed
  Direct: false
  ICE candidate (Local/Remote): relay/relay
  Last connection update: 2023-05-08 19:05:01

Daemon version: 0.19.0
CLI version: 0.19.0
Management: Connected to https://netbird.mydomain.com:33073
Signal: Connected to http://netbird.mydomain.com:10000
FQDN: arch-x1-carbon.netbird.selfhosted
NetBird IP: 100.75.174.247/16
Interface type: Kernel
Peers count: 3/5 Connected

Screenshots
image

Additional context
Add any other context about the problem here.

Originally created by @Damix48 on GitHub (May 8, 2023). **Describe the problem** I setup a DNS server and add a match domain the client doesn't use it. If changed to all domains the client use it. - Match domain: ``` ; <<>> DiG 9.18.14 <<>> google.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 46817 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 512 ;; QUESTION SECTION: ;google.com. IN A ;; ANSWER SECTION: google.com. 282 IN A 142.251.209.14 ;; Query time: 13 msec ;; SERVER: 8.8.8.8#53(8.8.8.8) (UDP) ;; WHEN: Mon May 08 19:10:53 CEST 2023 ;; MSG SIZE rcvd: 55 ``` - All domains (note the correct DNS server 100.75.174.247#53) : ``` ; <<>> DiG 9.18.14 <<>> google.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 5730 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 1232 ;; QUESTION SECTION: ;google.com. IN A ;; ANSWER SECTION: google.com. 284 IN A 142.250.180.174 ;; Query time: 23 msec ;; SERVER: 100.75.174.247#53(100.75.174.247) (UDP) ;; WHEN: Mon May 08 19:11:29 CEST 2023 ;; MSG SIZE rcvd: 65 ``` **To Reproduce** - Setup a DNS with a match domain. - Test using `dig`. **Expected behavior** The client should use the Netbird DNS for the match domain. **NetBird status -d output:** ``` Peers detail: netbird.netbird.selfhosted: NetBird IP: 100.75.192.220 Public key: [---] Status: Connected -- detail -- Connection type: Relayed Direct: false ICE candidate (Local/Remote): relay/relay Last connection update: 2023-05-08 19:05:01 Daemon version: 0.19.0 CLI version: 0.19.0 Management: Connected to https://netbird.mydomain.com:33073 Signal: Connected to http://netbird.mydomain.com:10000 FQDN: arch-x1-carbon.netbird.selfhosted NetBird IP: 100.75.174.247/16 Interface type: Kernel Peers count: 3/5 Connected ``` **Screenshots** ![image](https://user-images.githubusercontent.com/23702345/236884993-8eaa19c2-6361-4e9a-b04f-9c0bffbfbccd.png) **Additional context** Add any other context about the problem here.
saavagebueno added the clientwaiting-feedback labels 2025-11-20 05:09:35 -05:00
Author
Owner

@mlsmaycon commented on GitHub (Jun 16, 2023):

Hello @Damix48 sorry for the delay in responding to your issue. The match domains configuration is only supported without a All-domains resolvers on macOS, Windows and Linux with systemd-resolved.

Can you confirm if the issue happens on one of these systems?

@mlsmaycon commented on GitHub (Jun 16, 2023): Hello @Damix48 sorry for the delay in responding to your issue. The match domains configuration is only supported without a All-domains resolvers on macOS, Windows and Linux with systemd-resolved. Can you confirm if the issue happens on one of these systems?
Author
Owner

@nazarewk commented on GitHub (Apr 17, 2025):

closing for lack of feedback

@nazarewk commented on GitHub (Apr 17, 2025): closing for lack of feedback
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#322