Custom DNS nameserver can't resolve local domains on one device #1829

Open
opened 2025-11-20 06:07:34 -05:00 by saavagebueno · 0 comments
Owner

Originally created by @luukasn on GitHub (Apr 20, 2025).

Describe the problem
I am hosting Pi-hole DNS server on one of my peers. It's running on port 54 (because on that peer, 53 is reserved) and i use this DNS server as a custom DNS nameserver on Netbird. (local) domain name resolving does not work on one of my peers. I have a total of 3 peers which are my smartphone, laptop and desktop PC. The problem is only with the desktop PC.

To Reproduce
Use Pi-hole as a custom DNS nameserver on one of your peers and try to resolve a local domain (like home.lab)

Expected behavior
The desktop PC should be able to use Pi-hole and resolve custom local domains.

Are you using NetBird Cloud?
No. I am using the self-hosted version.

NetBird version

0.41.3

Is any other VPN software installed?
Yes, Mullvad VPN. It's (should be) disabled though.

Debug output
netbird status -dA:

Peers detail:
 iphone-acc.netbird.selfhosted:
  NetBird IP: 100.106.74.221
  Public key: rvQudASuV1Cbuc0N58TNVklVsK74jv+iiMit/xT0ags=
  Status: Connected
  -- detail --
  Connection type: P2P
  ICE candidate (Local/Remote): host/prflx
  ICE candidate endpoints (Local/Remote): 192.168.101.153:51820/192.168.101.107:51820
  Relay server address: rels://netbird.anon-cGNyU.domain:443
  Last connection update: 35 minutes, 26 seconds ago
  Last WireGuard handshake: 7 seconds ago
  Transfer status (received/sent) 7.6 KiB/20.5 KiB
  Quantum resistance: false
  Networks: -
  Latency: 7.767742ms

 arch.netbird.selfhosted:
  NetBird IP: 100.106.91.198
  Public key: c2bfn7/RL+8tSKVbBY/WpctTokUIKaLniSeTVGZTbh4=
  Status: Disconnected
  -- detail --
  Connection type:
  ICE candidate (Local/Remote): -/-
  ICE candidate endpoints (Local/Remote): -/-
  Relay server address:
  Last connection update: -
  Last WireGuard handshake: -
  Transfer status (received/sent) 0 B/0 B
  Quantum resistance: false
  Networks: -
  Latency: 0s

 raspberry.netbird.selfhosted:
  NetBird IP: 100.106.98.224
  Public key: SzQhIDPU9wFgNHN4GE+5CWNC06jGwGcJw0kVU/m1G0Y=
  Status: Connected
  -- detail --
  Connection type: P2P
  ICE candidate (Local/Remote): host/host
  ICE candidate endpoints (Local/Remote): 192.168.101.153:51820/192.168.101.157:51820
  Relay server address: rels://netbird.anon-cGNyU.domain:443
  Last connection update: 2 hours, 8 minutes ago
  Last WireGuard handshake: 1 minute, 59 seconds ago
  Transfer status (received/sent) 5.6 MiB/878.2 KiB
  Quantum resistance: false
  Networks: -
  Latency: 2.34349ms

Events:
  [WARNING] DNS (abb231ae-ca10-4195-995d-d738f215b22c)
    Message: All upstream servers failed (probe failed)
    Time: 2 hours, 40 minutes ago
    Metadata: upstreams: 100.106.98.224:54
  [INFO] SYSTEM (81cb42e8-1360-4dcc-bc9f-0ca32685c4fe)
    Message: Network map updated
    Time: 2 hours, 40 minutes ago
  [WARNING] DNS (5dae77bf-f1be-452f-a587-94f41d714679)
    Message: All upstream servers failed (probe failed)
    Time: 2 hours, 8 minutes ago
    Metadata: upstreams: 100.106.98.224:54
  [INFO] SYSTEM (7fb198d0-a7e1-4305-97b9-8689777f2a68)
    Message: Network map updated
    Time: 2 hours, 8 minutes ago
OS: linux/amd64
Daemon version: 0.41.3
CLI version: 0.41.3
Management: Connected to https://netbird.anon-cGNyU.domain:443
Signal: Connected to https://netbird.anon-cGNyU.domain:443
Relays:
  [stun:netbird.anon-cGNyU.domain:3478] is Available
  [turn:netbird.anon-cGNyU.domain:3478?transport=udp] is Available
  [rels://netbird.anon-cGNyU.domain:443] is Available
Nameservers:
  [100.106.98.224:54] for [.] is Available
FQDN: archbtw.netbird.selfhosted
NetBird IP: 100.106.33.234/16
Interface type: Kernel
Quantum resistance: false
Networks: -
Forwarding rules: 0
Peers count: 2/3 Connected

netbird debug for 1m -AS
netbird.debug.626719709.zip

Screenshots
Image

Image

client.log error:
Image

Additional context

  • One thing i noticed is that each device which successufully resolve these local domain names use hotspot/cellular. On the desktop however it's connected via Wi-Fi to my home network.
  • Connecting via the static IP Netbird assigns to each peer works fine, no problems.

Have you tried these troubleshooting steps?

  • Checked for newer NetBird versions
  • Searched for similar issues on GitHub (including closed ones)
  • Restarted the NetBird client
  • Disabled other VPN software
  • Checked firewall settings
Originally created by @luukasn on GitHub (Apr 20, 2025). **Describe the problem** I am hosting Pi-hole DNS server on one of my peers. It's running on port 54 (because on that peer, 53 is reserved) and i use this DNS server as a custom DNS nameserver on Netbird. (local) domain name resolving does not work on one of my peers. I have a total of 3 peers which are my smartphone, laptop and desktop PC. The problem is only with the desktop PC. **To Reproduce** Use Pi-hole as a custom DNS nameserver on one of your peers and try to resolve a local domain (like `home.lab`) **Expected behavior** The desktop PC should be able to use Pi-hole and resolve custom local domains. **Are you using NetBird Cloud?** No. I am using the self-hosted version. **NetBird version** `0.41.3` **Is any other VPN software installed?** Yes, Mullvad VPN. It's (should be) disabled though. **Debug output** `netbird status -dA`: ``` Peers detail: iphone-acc.netbird.selfhosted: NetBird IP: 100.106.74.221 Public key: rvQudASuV1Cbuc0N58TNVklVsK74jv+iiMit/xT0ags= Status: Connected -- detail -- Connection type: P2P ICE candidate (Local/Remote): host/prflx ICE candidate endpoints (Local/Remote): 192.168.101.153:51820/192.168.101.107:51820 Relay server address: rels://netbird.anon-cGNyU.domain:443 Last connection update: 35 minutes, 26 seconds ago Last WireGuard handshake: 7 seconds ago Transfer status (received/sent) 7.6 KiB/20.5 KiB Quantum resistance: false Networks: - Latency: 7.767742ms arch.netbird.selfhosted: NetBird IP: 100.106.91.198 Public key: c2bfn7/RL+8tSKVbBY/WpctTokUIKaLniSeTVGZTbh4= Status: Disconnected -- detail -- Connection type: ICE candidate (Local/Remote): -/- ICE candidate endpoints (Local/Remote): -/- Relay server address: Last connection update: - Last WireGuard handshake: - Transfer status (received/sent) 0 B/0 B Quantum resistance: false Networks: - Latency: 0s raspberry.netbird.selfhosted: NetBird IP: 100.106.98.224 Public key: SzQhIDPU9wFgNHN4GE+5CWNC06jGwGcJw0kVU/m1G0Y= Status: Connected -- detail -- Connection type: P2P ICE candidate (Local/Remote): host/host ICE candidate endpoints (Local/Remote): 192.168.101.153:51820/192.168.101.157:51820 Relay server address: rels://netbird.anon-cGNyU.domain:443 Last connection update: 2 hours, 8 minutes ago Last WireGuard handshake: 1 minute, 59 seconds ago Transfer status (received/sent) 5.6 MiB/878.2 KiB Quantum resistance: false Networks: - Latency: 2.34349ms Events: [WARNING] DNS (abb231ae-ca10-4195-995d-d738f215b22c) Message: All upstream servers failed (probe failed) Time: 2 hours, 40 minutes ago Metadata: upstreams: 100.106.98.224:54 [INFO] SYSTEM (81cb42e8-1360-4dcc-bc9f-0ca32685c4fe) Message: Network map updated Time: 2 hours, 40 minutes ago [WARNING] DNS (5dae77bf-f1be-452f-a587-94f41d714679) Message: All upstream servers failed (probe failed) Time: 2 hours, 8 minutes ago Metadata: upstreams: 100.106.98.224:54 [INFO] SYSTEM (7fb198d0-a7e1-4305-97b9-8689777f2a68) Message: Network map updated Time: 2 hours, 8 minutes ago OS: linux/amd64 Daemon version: 0.41.3 CLI version: 0.41.3 Management: Connected to https://netbird.anon-cGNyU.domain:443 Signal: Connected to https://netbird.anon-cGNyU.domain:443 Relays: [stun:netbird.anon-cGNyU.domain:3478] is Available [turn:netbird.anon-cGNyU.domain:3478?transport=udp] is Available [rels://netbird.anon-cGNyU.domain:443] is Available Nameservers: [100.106.98.224:54] for [.] is Available FQDN: archbtw.netbird.selfhosted NetBird IP: 100.106.33.234/16 Interface type: Kernel Quantum resistance: false Networks: - Forwarding rules: 0 Peers count: 2/3 Connected ``` `netbird debug for 1m -AS` [netbird.debug.626719709.zip](https://github.com/user-attachments/files/19827172/netbird.debug.626719709.zip) **Screenshots** ![Image](https://github.com/user-attachments/assets/a19641a8-16e3-4720-95ef-ebeee212c90e) ![Image](https://github.com/user-attachments/assets/410bf72a-3d0d-42cf-8b21-979214c0c1b1) client.log error: ![Image](https://github.com/user-attachments/assets/66383d45-9467-4a61-9c9a-b95922667eb4) **Additional context** - One thing i noticed is that each device which successufully resolve these local domain names use hotspot/cellular. On the desktop however it's connected via Wi-Fi to my home network. - Connecting via the static IP Netbird assigns to each peer works fine, no problems. **Have you tried these troubleshooting steps?** - [x] Checked for newer NetBird versions - [x] Searched for similar issues on GitHub (including closed ones) - [x] Restarted the NetBird client - [x] Disabled other VPN software - [x] Checked firewall settings
saavagebueno added the triage-needed label 2025-11-20 06:07:34 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#1829