Netbird client is not clearing resolv.conf after shutdown #292

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

Originally created by @ykorzikowski on GitHub (Mar 14, 2023).

Originally assigned to: @pascal-fischer on GitHub.

Describe the problem
I noticed, that on machine reboots or even when netbird is loosing connection, it fails to reconnect. Reason is, the netbird dns is still set in the resolv.conf, but netbird is not answering dns requests.

To Reproduce

  1. Installa netbird in any vm
  2. Do a dirty poweroff
  3. On reboot, netbird may fail connectiing

Expected behavior
Netbird can connect to the vpn server.

NetBird status -d output:
Not applicable

Possible workaround
Add your vpn server to hosts file, so it will always resolve.

Originally created by @ykorzikowski on GitHub (Mar 14, 2023). Originally assigned to: @pascal-fischer on GitHub. **Describe the problem** I noticed, that on machine reboots or even when netbird is loosing connection, it fails to reconnect. Reason is, the netbird dns is still set in the resolv.conf, but netbird is not answering dns requests. **To Reproduce** 1. Installa netbird in any vm 2. Do a dirty poweroff 3. On reboot, netbird may fail connectiing **Expected behavior** Netbird can connect to the vpn server. **NetBird status -d output:** Not applicable **Possible workaround** Add your vpn server to hosts file, so it will always resolve.
Author
Owner

@TSJasonH commented on GitHub (Jan 13, 2024):

I'd like to add we have observed similar behavior on the windows client too. In our case, the user killed the parent netbird process (and service) from task manager. Then was no longer able to connect to the VPN even after a reboot. Adding the netbird server to the hosts file was enough to get it working again.

@TSJasonH commented on GitHub (Jan 13, 2024): I'd like to add we have observed similar behavior on the windows client too. In our case, the user killed the parent netbird process (and service) from task manager. Then was no longer able to connect to the VPN even after a reboot. Adding the netbird server to the hosts file was enough to get it working again.
Author
Owner

@lixmal commented on GitHub (Feb 21, 2025):

Has been implemented in recent versions

@lixmal commented on GitHub (Feb 21, 2025): Has been implemented in recent versions
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#292