got an error while applying resolvconf configuration for wt0 interface, error: exit status 99 #575

Open
opened 2025-11-20 05:14:02 -05:00 by saavagebueno · 5 comments
Owner

Originally created by @magixus on GitHub (Jan 9, 2024).

Describe the problem
Netbird cannot configure resolvconf in some peers

these are some error logs

2024-01-09T16:59:07+01:00 ERRO client/internal/dns/server.go:282: got an error while applying resolvconf configuration for wt0 interface, error: exit status 99
2024-01-09T16:59:07+01:00 ERRO client/internal/dns/host_linux.go:99: got an error while checking systemd resolv conf mode, error: got an error getting property org.freedesktop.resolve1.Manager.ResolvConfMode: Unknown property or interface.
2024-01-09T16:59:07+01:00 WARN client/internal/wgproxy/factory_linux.go:15: failed to initialize ebpf proxy, fallback to user space proxy: field NbXdpProg: program nb_xdp_prog: map .rodata: map create: read- and write-only maps not supported (requires >= v5.2)
root@api-server:/etc/systemd/network# cat /var/log/netbird/client.log | grep error
2024-01-09T13:34:40+01:00 WARN client/server/server.go:122: failed login: rpc error: code = InvalidArgument desc = invalid setup-key or no sso information provided, err: invalid UUID length: 0
2024-01-09T13:34:41+01:00 ERRO client/internal/dns/host_linux.go:99: got an error while checking systemd resolv conf mode, error: got an error getting property org.freedesktop.resolve1.Manager.ResolvConfMode: Unknown property or interface.
2024-01-09T13:34:41+01:00 ERRO client/internal/dns/resolvconf_linux.go:47: got an error while removing resolvconf configuration for wt0 interface, error: exit status 99
2024-01-09T13:37:38+01:00 ERRO client/internal/dns/server.go:168: got an error while removing resolvconf configuration for wt0 interface, error: exit status 99
2024-01-09T13:38:27+01:00 WARN client/server/server.go:122: failed login: rpc error: code = InvalidArgument desc = invalid setup-key or no sso information provided, err: invalid UUID length: 0
2024-01-09T13:38:28+01:00 ERRO client/internal/dns/host_linux.go:99: got an error while checking systemd resolv conf mode, error: got an error getting property org.freedesktop.resolve1.Manager.ResolvConfMode: Unknown property or interface.
2024-01-09T13:38:28+01:00 ERRO client/internal/dns/resolvconf_linux.go:47: got an error while removing resolvconf configuration for wt0 interface, error: exit status 99

Expected behavior
when netbird successfully connect, it should be able to setup resolver to resolve other peers FQDNs

NetBird status -d output:

root@api-server:~# netbird status -d
Peers detail:
 nano-48433.eu-vpn.domain.ltd:
  NetBird IP: 100.85.46.148
  Public key: xxIJaMBffN0PFfiCCATeEI+NpTQ7pRvKas+ApqjHlmE=
  Status: Connected
  -- detail --
  Connection type: P2P
  Direct: true
  ICE candidate (Local/Remote): host/prflx
  Last connection update: 2024-01-09 16:59:12

 nano-08266.eu-vpn.domain.ltd:
  NetBird IP: 100.85.66.103
  Public key: uYXixcplxIBBC8navUpT0QHV1+1UeBaqSH7sJpYLr3s=
  Status: Connected
  -- detail --
  Connection type: P2P
  Direct: true
  ICE candidate (Local/Remote): host/prflx
  Last connection update: 2024-01-09 18:43:01

 dublin-office.eu-vpn.domain.ltd:
  NetBird IP: 100.85.187.233
  Public key: 7LtFVno9xxLSUA+R79XaqSD7t5svM7XT7+OLFLl6SG0=
  Status: Connected
  -- detail --
  Connection type: P2P
  Direct: true
  ICE candidate (Local/Remote): srflx/prflx
  Last connection update: 2024-01-09 16:59:13

Daemon version: 0.25.3
CLI version: 0.25.3
Management: Connected to https://eu-vpn.domain.ltd:443
Signal: Connected to https://eu-vpn.domain.ltd:443
FQDN: api-server.eu-vpn.domain.ltd
NetBird IP: 100.85.85.131/16
Interface type: Userspace
Peers count: 3/3 Connected

Screenshots

  1. Connect netbird with setup keys
    image

  2. netbird status (connected)
    image

  3. /etc/resolv.conf doesn't contain DNS details like other peers
    image

  4. After proper restart (down => up or netbird service restart) I got resolv errors

2024-01-09T18:48:48+01:00 ERRO client/internal/dns/server.go:168: got an error while removing resolvconf configuration for wt0 interface, error: exit status 99
2024-01-09T18:48:48+01:00 INFO client/internal/engine.go:170: stopped Netbird Engine
2024-01-09T18:48:48+01:00 INFO client/internal/connect.go:205: stopped NetBird client
2024-01-09T18:48:54+01:00 INFO client/internal/connect.go:56: starting NetBird client version 0.25.3
2024-01-09T18:48:54+01:00 WARN client/internal/wgproxy/factory_linux.go:15: failed to initialize ebpf proxy, fallback to user space proxy: field NbXdpProg: program nb_xdp_prog: map .rodata: map create: read- and write-only maps not supported (requires >= v5.2)
2024-01-09T18:48:54+01:00 INFO iface/tun_usp_linux.go:33: using userspace bind mode
2024-01-09T18:48:54+01:00 INFO iface/tun_usp_linux.go:45: create tun interface
2024-01-09T18:48:54+01:00 WARN client/firewall/nftables/route_linux.go:69: table 'filter' not found for forward rules
2024-01-09T18:48:55+01:00 ERRO client/internal/dns/host_linux.go:99: got an error while checking systemd resolv conf mode, error: got an error getting property org.freedesktop.resolve1.Manager.ResolvConfMode: Unknown property or interface.
2024-01-09T18:48:55+01:00 INFO signal/client/grpc.go:157: connected to the Signal Service stream
2024-01-09T18:48:55+01:00 INFO client/internal/connect.go:191: Netbird engine started, my IP is: 100.85.85.131/16
2024-01-09T18:48:55+01:00 INFO management/client/grpc.go:143: connected to the Management Service stream
2024-01-09T18:48:55+01:00 ERRO client/internal/dns/server.go:282: got an error while applying resolvconf configuration for wt0 interface, error: exit status 99
2024-01-09T18:48:55+01:00 INFO client/internal/acl/manager.go:52: ACL rules processed in: 26.329µs, total rules count: 2
2024-01-09T18:48:56+01:00 INFO client/internal/peer/conn.go:343: connected to peer xxIJaMBffN0PFfiCCATeEI+NpTQ7pRvKas+ApqjHlmE=, endpoint address: 92.40.219.102:1961
2024-01-09T18:48:57+01:00 INFO client/internal/peer/conn.go:343: connected to peer uYXixcplxIBBC8navUpT0QHV1+1UeBaqSH7sJpYLr3s=, endpoint address: 185.205.230.240:21197
2024-01-09T18:48:57+01:00 INFO client/internal/peer/conn.go:343: connected to peer 7LtFVno9xxLSUA+R79XaqSD7t5svM7XT7+OLFLl6SG0=, endpoint address: 89.100.126.110:51820
2024-01-09T18:49:51+01:00 INFO client/internal/peer/conn.go:343: connected to peer uYXixcplxIBBC8navUpT0QHV1+1UeBaqSH7sJpYLr3s=, endpoint address: 185.205.230.240:21197
2024-01-09T18:50:24+01:00 INFO client/internal/peer/conn.go:343: connected to peer uYXixcplxIBBC8navUpT0QHV1+1UeBaqSH7sJpYLr3s=, endpoint address: 185.205.230.240:21197
  1. cannot reach other connected peers via FQDN nor via IP
    image

image

image

Additional context

I think there is a bug in netbird client not able to detect DNS resolver although:

System-resovled is active and running

image

resolvconf is installed and running

image

seen this issues in:

ubuntu 18

ubuntu 20 on Nvidia nano

Netbird run with or without sudo / root

Originally created by @magixus on GitHub (Jan 9, 2024). **Describe the problem** Netbird cannot configure resolvconf in some peers these are some error logs ``` 2024-01-09T16:59:07+01:00 ERRO client/internal/dns/server.go:282: got an error while applying resolvconf configuration for wt0 interface, error: exit status 99 2024-01-09T16:59:07+01:00 ERRO client/internal/dns/host_linux.go:99: got an error while checking systemd resolv conf mode, error: got an error getting property org.freedesktop.resolve1.Manager.ResolvConfMode: Unknown property or interface. 2024-01-09T16:59:07+01:00 WARN client/internal/wgproxy/factory_linux.go:15: failed to initialize ebpf proxy, fallback to user space proxy: field NbXdpProg: program nb_xdp_prog: map .rodata: map create: read- and write-only maps not supported (requires >= v5.2) ``` ``` root@api-server:/etc/systemd/network# cat /var/log/netbird/client.log | grep error 2024-01-09T13:34:40+01:00 WARN client/server/server.go:122: failed login: rpc error: code = InvalidArgument desc = invalid setup-key or no sso information provided, err: invalid UUID length: 0 2024-01-09T13:34:41+01:00 ERRO client/internal/dns/host_linux.go:99: got an error while checking systemd resolv conf mode, error: got an error getting property org.freedesktop.resolve1.Manager.ResolvConfMode: Unknown property or interface. 2024-01-09T13:34:41+01:00 ERRO client/internal/dns/resolvconf_linux.go:47: got an error while removing resolvconf configuration for wt0 interface, error: exit status 99 2024-01-09T13:37:38+01:00 ERRO client/internal/dns/server.go:168: got an error while removing resolvconf configuration for wt0 interface, error: exit status 99 2024-01-09T13:38:27+01:00 WARN client/server/server.go:122: failed login: rpc error: code = InvalidArgument desc = invalid setup-key or no sso information provided, err: invalid UUID length: 0 2024-01-09T13:38:28+01:00 ERRO client/internal/dns/host_linux.go:99: got an error while checking systemd resolv conf mode, error: got an error getting property org.freedesktop.resolve1.Manager.ResolvConfMode: Unknown property or interface. 2024-01-09T13:38:28+01:00 ERRO client/internal/dns/resolvconf_linux.go:47: got an error while removing resolvconf configuration for wt0 interface, error: exit status 99 ``` **Expected behavior** when netbird successfully connect, it should be able to setup resolver to resolve other peers FQDNs **NetBird status -d output:** ``` root@api-server:~# netbird status -d Peers detail: nano-48433.eu-vpn.domain.ltd: NetBird IP: 100.85.46.148 Public key: xxIJaMBffN0PFfiCCATeEI+NpTQ7pRvKas+ApqjHlmE= Status: Connected -- detail -- Connection type: P2P Direct: true ICE candidate (Local/Remote): host/prflx Last connection update: 2024-01-09 16:59:12 nano-08266.eu-vpn.domain.ltd: NetBird IP: 100.85.66.103 Public key: uYXixcplxIBBC8navUpT0QHV1+1UeBaqSH7sJpYLr3s= Status: Connected -- detail -- Connection type: P2P Direct: true ICE candidate (Local/Remote): host/prflx Last connection update: 2024-01-09 18:43:01 dublin-office.eu-vpn.domain.ltd: NetBird IP: 100.85.187.233 Public key: 7LtFVno9xxLSUA+R79XaqSD7t5svM7XT7+OLFLl6SG0= Status: Connected -- detail -- Connection type: P2P Direct: true ICE candidate (Local/Remote): srflx/prflx Last connection update: 2024-01-09 16:59:13 Daemon version: 0.25.3 CLI version: 0.25.3 Management: Connected to https://eu-vpn.domain.ltd:443 Signal: Connected to https://eu-vpn.domain.ltd:443 FQDN: api-server.eu-vpn.domain.ltd NetBird IP: 100.85.85.131/16 Interface type: Userspace Peers count: 3/3 Connected ``` **Screenshots** 1. Connect netbird with setup keys ![image](https://github.com/netbirdio/netbird/assets/7642058/b97a0d67-2459-4374-85d5-ce1361d98f18) 2. netbird status (connected) ![image](https://github.com/netbirdio/netbird/assets/7642058/287dba29-865e-46f2-bef1-ef28118f9fb0) 3. `/etc/resolv.conf` doesn't contain DNS details like other peers ![image](https://github.com/netbirdio/netbird/assets/7642058/ec212ab3-e7f7-4822-b43d-4895ee3d75c2) 4. After proper restart (down => up or netbird service restart) I got resolv errors ``` 2024-01-09T18:48:48+01:00 ERRO client/internal/dns/server.go:168: got an error while removing resolvconf configuration for wt0 interface, error: exit status 99 2024-01-09T18:48:48+01:00 INFO client/internal/engine.go:170: stopped Netbird Engine 2024-01-09T18:48:48+01:00 INFO client/internal/connect.go:205: stopped NetBird client 2024-01-09T18:48:54+01:00 INFO client/internal/connect.go:56: starting NetBird client version 0.25.3 2024-01-09T18:48:54+01:00 WARN client/internal/wgproxy/factory_linux.go:15: failed to initialize ebpf proxy, fallback to user space proxy: field NbXdpProg: program nb_xdp_prog: map .rodata: map create: read- and write-only maps not supported (requires >= v5.2) 2024-01-09T18:48:54+01:00 INFO iface/tun_usp_linux.go:33: using userspace bind mode 2024-01-09T18:48:54+01:00 INFO iface/tun_usp_linux.go:45: create tun interface 2024-01-09T18:48:54+01:00 WARN client/firewall/nftables/route_linux.go:69: table 'filter' not found for forward rules 2024-01-09T18:48:55+01:00 ERRO client/internal/dns/host_linux.go:99: got an error while checking systemd resolv conf mode, error: got an error getting property org.freedesktop.resolve1.Manager.ResolvConfMode: Unknown property or interface. 2024-01-09T18:48:55+01:00 INFO signal/client/grpc.go:157: connected to the Signal Service stream 2024-01-09T18:48:55+01:00 INFO client/internal/connect.go:191: Netbird engine started, my IP is: 100.85.85.131/16 2024-01-09T18:48:55+01:00 INFO management/client/grpc.go:143: connected to the Management Service stream 2024-01-09T18:48:55+01:00 ERRO client/internal/dns/server.go:282: got an error while applying resolvconf configuration for wt0 interface, error: exit status 99 2024-01-09T18:48:55+01:00 INFO client/internal/acl/manager.go:52: ACL rules processed in: 26.329µs, total rules count: 2 2024-01-09T18:48:56+01:00 INFO client/internal/peer/conn.go:343: connected to peer xxIJaMBffN0PFfiCCATeEI+NpTQ7pRvKas+ApqjHlmE=, endpoint address: 92.40.219.102:1961 2024-01-09T18:48:57+01:00 INFO client/internal/peer/conn.go:343: connected to peer uYXixcplxIBBC8navUpT0QHV1+1UeBaqSH7sJpYLr3s=, endpoint address: 185.205.230.240:21197 2024-01-09T18:48:57+01:00 INFO client/internal/peer/conn.go:343: connected to peer 7LtFVno9xxLSUA+R79XaqSD7t5svM7XT7+OLFLl6SG0=, endpoint address: 89.100.126.110:51820 2024-01-09T18:49:51+01:00 INFO client/internal/peer/conn.go:343: connected to peer uYXixcplxIBBC8navUpT0QHV1+1UeBaqSH7sJpYLr3s=, endpoint address: 185.205.230.240:21197 2024-01-09T18:50:24+01:00 INFO client/internal/peer/conn.go:343: connected to peer uYXixcplxIBBC8navUpT0QHV1+1UeBaqSH7sJpYLr3s=, endpoint address: 185.205.230.240:21197 ``` 5. cannot reach other connected peers via FQDN nor via IP ![image](https://github.com/netbirdio/netbird/assets/7642058/c3f2036d-eecd-4216-9009-20ab7dcf4894) ![image](https://github.com/netbirdio/netbird/assets/7642058/a5b0bff8-6787-489e-85f5-6d25e11841aa) ![image](https://github.com/netbirdio/netbird/assets/7642058/0b3e7e9b-34bc-4c53-917c-a4487c22f402) **Additional context** I think there is a bug in netbird client not able to detect DNS resolver although: System-resovled is active and running ![image](https://github.com/netbirdio/netbird/assets/7642058/367be1ff-1402-43ae-94e0-8ecb8244b2bd) resolvconf is installed and running ![image](https://github.com/netbirdio/netbird/assets/7642058/93b0737e-7adc-4982-87b6-600560e0d623) seen this issues in: ![ubuntu 18 ](https://github.com/netbirdio/netbird/assets/7642058/7afe978e-f327-404d-b9b7-2db1b9988595) ![ubuntu 20 on Nvidia nano](https://github.com/netbirdio/netbird/assets/7642058/320309d8-bba2-49a7-aa53-f3688523d329) Netbird run with or without sudo / root
saavagebueno added the bug label 2025-11-20 05:14:02 -05:00
Author
Owner

@magixus commented on GitHub (Feb 6, 2024):

ERRO client/internal/dns/server.go:282: unable to configure DNS for this peer using resolvconf manager without a nameserver group with all domains configured

@magixus commented on GitHub (Feb 6, 2024): `ERRO client/internal/dns/server.go:282: unable to configure DNS for this peer using resolvconf manager without a nameserver group with all domains configured `
Author
Owner

@rpellerej commented on GitHub (Feb 29, 2024):

Hi !

I'm facing the same issue.
Did you found a solution ? Is there a way to manually configure the internal DNS to resolv netbird peers IP with their name ?

@rpellerej commented on GitHub (Feb 29, 2024): Hi ! I'm facing the same issue. Did you found a solution ? Is there a way to manually configure the internal DNS to resolv netbird peers IP with their name ?
Author
Owner

@magixus commented on GitHub (Feb 29, 2024):

@rpellerej I didn't find a solution to this.

I have just dropped the server I was working on and used another one.

@magixus commented on GitHub (Feb 29, 2024): @rpellerej I didn't find a solution to this. I have just dropped the server I was working on and used another one.
Author
Owner

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

@magixus @rpellerej are you still facing the issue with latest (or at least recent) NetBird versions?

@nazarewk commented on GitHub (Apr 18, 2025): @magixus @rpellerej are you still facing the issue with latest (or at least recent) NetBird versions?
Author
Owner

@blackshot commented on GitHub (Nov 4, 2025):

@nazarewk
i installed using curl -fsSL https://pkgs.netbird.io/install.sh | sh yesterday and i'm experiencing the same issue with some of my servers which are running ubuntu 18.04.6 and 18.04.1 both are running resolvconf and systemd-resolved. this does not happen using my 22.04 ubuntu using resolvectl

Image Image Image Image Image
@blackshot commented on GitHub (Nov 4, 2025): @nazarewk i installed using `curl -fsSL https://pkgs.netbird.io/install.sh | sh` yesterday and i'm experiencing the same issue with some of my servers which are running ubuntu 18.04.6 and 18.04.1 both are running resolvconf and systemd-resolved. this does not happen using my 22.04 ubuntu using resolvectl <img width="758" height="231" alt="Image" src="https://github.com/user-attachments/assets/fede8d8a-ab4a-43d7-aea2-7af7475a63fc" /> <img width="953" height="497" alt="Image" src="https://github.com/user-attachments/assets/95318460-7b16-4cc1-882d-7ef5c2299275" /> <img width="1891" height="426" alt="Image" src="https://github.com/user-attachments/assets/981a66ac-2de8-4c66-8ebf-2c94159e97ef" /> <img width="631" height="847" alt="Image" src="https://github.com/user-attachments/assets/ec814794-6e52-469b-8c7e-4e59b5cc6f95" /> <img width="742" height="205" alt="Image" src="https://github.com/user-attachments/assets/19220585-083c-4927-badc-535f812917a9" />
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#575