DNS search domain order #1832

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

Originally created by @brunoleon on GitHub (Apr 23, 2025).

Describe the problem

Initial state of resolv.conf:
search lab lan

When netbird client connects, it does insert .netbird.selhosted as a search domain:
search lab netbird.selfhosted lan

The problem is that the VPN resolution matches before the local DHCP provided suffix.
I did not see a way to configure the order of insertion.

On another machine which has only:
search lan

after connection I got:
search lan netbird.selfhosted

To Reproduce

Simply connect to netbird.

Expected behavior

In resolv.conf, netbird suffix should be added last:
search lab lan netbird.selfhosted

Are you using NetBird Cloud?

Self-hosted Netbird

NetBird version

0.41.3
netbird version

Is any other VPN software installed?

No

Debug output

OS: linux/amd64
Daemon version: 0.41.3
CLI version: 0.41.3
Management: Connected to https://netbird.anon-tDP76.domain:443
Signal: Connected to https://netbird.anon-tDP76.domain:443
Relays:
[stun:netbird.anon-tDP76.domain:3478] is Available
[turn:netbird.anon-tDP76.domain:3478?transport=udp] is Available
Nameservers:
FQDN: stumpy.netbird.selfhosted
NetBird IP: 100.72.161.84/16
Interface type: Kernel
Quantum resistance: false
Networks: -
Forwarding rules: 0
Peers count: 5/6 Connected

Have you tried these troubleshooting steps?

  • [X ] 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 @brunoleon on GitHub (Apr 23, 2025). **Describe the problem** Initial state of resolv.conf: `search lab lan` When netbird client connects, it does insert `.netbird.selhosted` as a search domain: `search lab netbird.selfhosted lan` The problem is that the VPN resolution matches before the local DHCP provided suffix. I did not see a way to configure the order of insertion. On another machine which has only: `search lan` after connection I got: `search lan netbird.selfhosted` **To Reproduce** Simply connect to netbird. **Expected behavior** In resolv.conf, netbird suffix should be added last: `search lab lan netbird.selfhosted` **Are you using NetBird Cloud?** Self-hosted Netbird **NetBird version** 0.41.3 `netbird version` **Is any other VPN software installed?** No **Debug output** OS: linux/amd64 Daemon version: 0.41.3 CLI version: 0.41.3 Management: Connected to https://netbird.anon-tDP76.domain:443 Signal: Connected to https://netbird.anon-tDP76.domain:443 Relays: [stun:netbird.anon-tDP76.domain:3478] is Available [turn:netbird.anon-tDP76.domain:3478?transport=udp] is Available Nameservers: FQDN: stumpy.netbird.selfhosted NetBird IP: 100.72.161.84/16 Interface type: Kernel Quantum resistance: false Networks: - Forwarding rules: 0 Peers count: 5/6 Connected **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:38 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#1832