Optionally prevent DNS configuration on the client #1187

Closed
opened 2025-11-20 05:25:34 -05:00 by saavagebueno · 2 comments
Owner

Originally created by @RixzZ on GitHub (Aug 28, 2024).

Is your feature request related to a problem? Please describe.
There seems to not be a way to disable the custom DNS pushed by the Netbird instance. In certain situations, the user may not want to use the DNS server provided by the VPN.

Describe the solution you'd like
Maybe an option similar to the 'Allow SSH' option on the client, maybe 'Apply DNS servers', which you can disable to prevent the DNS setup to be performed on connection from the client.

Describe alternatives you've considered
I tried configuring the 'CustomDNSAddress' option in the config.json but I don't seem to do anything related to the issue, and I didn't find documentation about it.

Additional context
N/A

Originally created by @RixzZ on GitHub (Aug 28, 2024). **Is your feature request related to a problem? Please describe.** There seems to not be a way to disable the custom DNS pushed by the Netbird instance. In certain situations, the user may not want to use the DNS server provided by the VPN. **Describe the solution you'd like** Maybe an option similar to the 'Allow SSH' option on the client, maybe 'Apply DNS servers', which you can disable to prevent the DNS setup to be performed on connection from the client. **Describe alternatives you've considered** I tried configuring the 'CustomDNSAddress' option in the config.json but I don't seem to do anything related to the issue, and I didn't find documentation about it. **Additional context** N/A
saavagebueno added the feature-requestclientdns labels 2025-11-20 05:25:34 -05:00
Author
Owner

@ThHirsch commented on GitHub (Nov 11, 2024):

this can be achieved by putting your peers in a special Group, then going to DNS->DNS-Settings->'Disable DNS management for these groups'
Once set, the netbird client dos not touch the local DNS any more.
If you want to have a specifig nameserver added then, you may add this to the 'netbird up' command as follows:

netbird up --dns-resolver-address <your-wanted-DNS-server-to-be-injected-into-resolv.conf>:53
At least this was how I got it solving my DNS problems on a SIP server needing DNS resolving SRV records (something the integrated netbird DNS seems not to support (yet)), but that's another story.....

@ThHirsch commented on GitHub (Nov 11, 2024): this can be achieved by putting your peers in a special Group, then going to DNS->DNS-Settings->'Disable DNS management for these groups' Once set, the netbird client dos not touch the local DNS any more. If you want to have a specifig nameserver added then, you may add this to the '_netbird up_' command as follows: _netbird up --dns-resolver-address <your-wanted-DNS-server-to-be-injected-into-resolv.conf>:53_ At least this was how I got it solving my DNS problems on a SIP server needing DNS resolving SRV records (something the integrated netbird DNS seems not to support (yet)), but that's another story.....
Author
Owner

@saule1508 commented on GitHub (Jun 13, 2025):

it is possible now with --disable-dns option in netbird up. I think this issue is closed

@saule1508 commented on GitHub (Jun 13, 2025): it is possible now with --disable-dns option in netbird up. I think this issue is closed
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#1187