netbird icon indicating copy to clipboard operation
netbird copied to clipboard

[bug][selfhosted] - Local DNS resolution not possible when netbird client is working

Open rihards-simanovics opened this issue 6 months ago • 14 comments

Describe the problem

all DNS queries to 127.0.0.53:53 fail with a timeout. related to issue https://github.com/netbirdio/netbird/issues/2186

To Reproduce

Steps to reproduce the behavior:

  1. spin up a VPS with Ubuntu Server 22.04.4 LTS
  2. update all packages
  3. install cli client
  4. connect to the management server
  5. attempt to run

Expected behavior

when running the nslookup on google.com this should come up:

Server:         127.0.0.53
Address:        127.0.0.53#53

Non-authoritative answer:
Name:   google.com
Address: <some ip closest to you>
Name:   google.com
Address: <some ip closest to you>

Actual Behaviour

All queries to root DNS fail with a timeout

nslookup localhost
;; communications error to 127.0.0.53#53: timed out
;; communications error to 127.0.0.53#53: timed out
;; communications error to 127.0.0.53#53: timed out
;; no servers could be reached

Are you using NetBird Cloud?

negative - all selfhosted.

NetBird managemnet server version: unknown - latest as of 26th july 24

NetBird client version: 0.28.6

NetBird status -d output:

OS: linux/amd64
Daemon version: 0.28.6
CLI version: 0.28.6
Management: Connected to https://vpn-server-domain.anon-CFOEs.domain:443
Signal: Connected to https://vpn-server-domain.anon-CFOEs.domain:443
Relays:
  [stun:vpn-server-domain.anon-CFOEs.domain:3478] is Unavailable, reason: dial: failed to listen: dial: dial udp: lookup vpn-server-domain.anon-CFOEs.domain on 127.0.0.53:53: read udp 127.0.0.1:40225->127.0.0.53:53: i/o timeout
  [turn:vpn-server-domain.anon-CFOEs.domain:3478?transport=udp] is Unavailable, reason: create client: lookup vpn-server-domain.anon-CFOEs.domain on 127.0.0.53:53: read udp 127.0.0.1:46372->127.0.0.53:53: i/o timeout
Nameservers:
  [127.0.0.53:53] for [.] is Available
  [8.8.8.8:53, 8.8.4.4:53] for [.] is Available
FQDN: gws-uk-1.netbird.selfhosted
NetBird IP: 100.90.79.155/16
Interface type: Kernel
Quantum resistance: false
Routes: -
Peers count: 2/4 Connected

Screenshots

no screenshots please see outputs above

Additional context

Running on Ubuntu Server 22.04.4 LTS, with Plesk Obsidian 18.0.62 Update #2 (Web Host Edition) and DNS BIND.

related to issue #2186

rihards-simanovics avatar Jul 27 '24 03:07 rihards-simanovics