Possible to set nameservers to connecting peers #143

Closed
opened 2025-11-20 05:06:56 -05:00 by saavagebueno · 13 comments
Owner

Originally created by @fang64 on GitHub (Jun 28, 2022).

Originally assigned to: @mlsmaycon on GitHub.

I am aware DNS is on the roadmap, but in the mean time would it be possible to privately provide nameservers to the client or configure the client to accept a nameserver?

I don't know if this would be appropriate since objectively it seems you already have a plan. Although I do think it would be useful to operate a custom DNS server even if it isn't explicitly tied to the clients themselves. Unless the feature is already there and I am not seeing it?

Originally created by @fang64 on GitHub (Jun 28, 2022). Originally assigned to: @mlsmaycon on GitHub. I am aware DNS is on the roadmap, but in the mean time would it be possible to privately provide nameservers to the client or configure the client to accept a nameserver? I don't know if this would be appropriate since objectively it seems you already have a plan. Although I do think it would be useful to operate a custom DNS server even if it isn't explicitly tied to the clients themselves. Unless the feature is already there and I am not seeing it?
saavagebueno added the enhancementclientmanagement-servicequestion labels 2025-11-20 05:06:56 -05:00
Author
Owner

@mlsmaycon commented on GitHub (Jul 6, 2022):

Hi @fang64, this feature is planned as part of our routing support feature coming up. The difference between this and our private DNS plan is that the later will resolve NetBird IPs in your network to domain names without need for manual mapping from the users.

The routing feature is planned for this month, stay tunned!

@mlsmaycon commented on GitHub (Jul 6, 2022): Hi @fang64, this feature is planned as part of our routing support feature coming up. The difference between this and our private DNS plan is that the later will resolve NetBird IPs in your network to domain names without need for manual mapping from the users. The routing feature is planned for this month, stay tunned!
Author
Owner

@dehoej commented on GitHub (Sep 27, 2022):

Routing support has now been added, but i do not se anything in the documentation regarding this topic?
Is it yet to be implemented?

For now i set specific nameservers for wt0 with resolvectl, but id does not seem like the correct solution.

@dehoej commented on GitHub (Sep 27, 2022): Routing support has now been added, but i do not se anything in the documentation regarding this topic? Is it yet to be implemented? For now i set specific nameservers for wt0 with resolvectl, but id does not seem like the correct solution.
Author
Owner

@pnowy commented on GitHub (Nov 10, 2022):

@mlsmaycon any update regarding the DNS forwarding (not internal DNS). That would be a great feature (and with native WireGuard working almost out-of-the-box with client DNS settings provided).

@pnowy commented on GitHub (Nov 10, 2022): @mlsmaycon any update regarding the DNS forwarding (not internal DNS). That would be a great feature (and with native WireGuard working almost out-of-the-box with client DNS settings provided).
Author
Owner

@dehoej commented on GitHub (Nov 10, 2022):

I made a small script as a workaround that I use to configure dns and search domain when netbird is connected.

#!/bin/bash
search_domain="example.com"
dns_resolver="10.0.0.53"

wt0_link_id=$(resolvectl status --no-pager | grep wt0 | cut -d " " -f2)

sudo resolvectl domain $wt0_link_id ${search_domain}
sudo resolvectl dns $wt0_link_id ${dns_resolver}
@dehoej commented on GitHub (Nov 10, 2022): I made a small script as a workaround that I use to configure dns and search domain when netbird is connected. ``` #!/bin/bash search_domain="example.com" dns_resolver="10.0.0.53" wt0_link_id=$(resolvectl status --no-pager | grep wt0 | cut -d " " -f2) sudo resolvectl domain $wt0_link_id ${search_domain} sudo resolvectl dns $wt0_link_id ${dns_resolver} ```
Author
Owner

@pnowy commented on GitHub (Nov 11, 2022):

@dehoej thanks for the script but I mostly looking the solution on the client side and not everyone using the linux, etc.

That's quite easy with WireGuard when you generating DNS entry for config file but haven't seen that kind of option on NetBird (yet!) 😄

@pnowy commented on GitHub (Nov 11, 2022): @dehoej thanks for the script but I mostly looking the solution on the client side and not everyone using the linux, etc. That's quite easy with WireGuard when you generating DNS entry for config file but haven't seen that kind of option on NetBird (yet!) 😄
Author
Owner

@dehoej commented on GitHub (Nov 11, 2022):

@pnowy Yeah i know, and that it why i use this workarround for my Ubuntu Desktop.

@dehoej commented on GitHub (Nov 11, 2022): @pnowy Yeah i know, and that it why i use this workarround for my Ubuntu Desktop.
Author
Owner

@mlsmaycon commented on GitHub (Nov 11, 2022):

Hello @pnowy, we are working on the feature right now, our latest estimation is that it will be available by the end of next week.

@mlsmaycon commented on GitHub (Nov 11, 2022): Hello @pnowy, we are working on the feature right now, our latest estimation is that it will be available by the end of next week.
Author
Owner

@pnowy commented on GitHub (Nov 11, 2022):

Will be happy to test this feature 😄

@pnowy commented on GitHub (Nov 11, 2022): Will be happy to test this feature 😄
Author
Owner

@pnowy commented on GitHub (Dec 8, 2022):

@fang64 @mlsmaycon I think this ticket could be closed. I've tested this on self-deployment version and works on.

I notice just only small delay when connecting (usually takes 2-3 minutes locally until my MacOS machine in browser takes DNS into account) but except that the DNS works very nice.

@pnowy commented on GitHub (Dec 8, 2022): @fang64 @mlsmaycon I think this ticket could be closed. I've tested this on self-deployment version and works on. I notice just only small delay when connecting (usually takes 2-3 minutes locally until my MacOS machine in browser takes DNS into account) but except that the DNS works very nice.
Author
Owner

@fang64 commented on GitHub (Dec 10, 2022):

@pnowy I see they've added support I suspect this doesn't solve everyone's situation maybe they need to extend the netbird client for windows hosts to run a local resolver with forwarding. So at least Linux/Mac land it's solved.

@fang64 commented on GitHub (Dec 10, 2022): @pnowy I see they've added support I suspect this doesn't solve everyone's situation maybe they need to extend the netbird client for windows hosts to run a local resolver with forwarding. So at least Linux/Mac land it's solved.
Author
Owner

@mlsmaycon commented on GitHub (Dec 10, 2022):

@fang64 we have windows support. If you are running into issues, can you share agent logs from C:\ProgramData\Netbird\client.log and test it with the following command in Powershell:

Resolve-DnsName -Name  peer-a.netbird.cloud
@mlsmaycon commented on GitHub (Dec 10, 2022): @fang64 we have windows support. If you are running into issues, can you share agent logs from `C:\ProgramData\Netbird\client.log` and test it with the following command in Powershell: ```shell Resolve-DnsName -Name peer-a.netbird.cloud ```
Author
Owner

@pnowy commented on GitHub (Dec 10, 2022):

@fang64 I've check on Windows VM and DNS worked nice. The only issue was missing config added to Windows firewall (the best way is to add the Netbird to trusted apps regarding the outgoing traffic). I've extended Windows docs about this: https://netbird.io/docs/getting-started/installation#windows

@pnowy commented on GitHub (Dec 10, 2022): @fang64 I've check on Windows VM and DNS worked nice. The only issue was missing config added to Windows firewall (the best way is to add the Netbird to trusted apps regarding the outgoing traffic). I've extended Windows docs about this: https://netbird.io/docs/getting-started/installation#windows
Author
Owner

@fang64 commented on GitHub (Dec 10, 2022):

@mlsmaycon @pnowy I see yes I've confirmed testing in a VM, I see. I'll Close it.

@fang64 commented on GitHub (Dec 10, 2022): @mlsmaycon @pnowy I see yes I've confirmed testing in a VM, I see. I'll Close it.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#143