DNS issues for custom DNS servers/IPs (write: can't assign requested address) #1436

Closed
opened 2025-11-20 05:30:18 -05:00 by saavagebueno · 5 comments
Owner

Originally created by @pnowy on GitHub (Nov 21, 2024).

Describe the problem

We are using NetBird for some time for group of people but sometimes some users reports the problem with DNS (we have 2 internal zones within GCP/AWS clouds, added conditionally in NetBird).

To Reproduce

Problem exist only for selected users. Cannot easily be reproduced. What's DNS logs showing for the problematic user:

OS: darwin/arm64
Daemon version: 0.32.0
CLI version: 0.32.0
Management: Connected to https://intranet.example.com:33073
Signal: Connected to http://intranet.example.com:10000
Relays: 
  [stun:intranet.example.com:3478] is Available
  [turn:intranet.example.com:3478?transport=udp] is Available
Nameservers: 
  [172.31.0.2:53] for [internal-example-cloud1.com] is Unavailable, reason: 1 error occurred:
	* write udp 192.168.0.102:50905->172.31.0.2:53: write: can't assign requested address
  [1.1.1.1:53, 1.0.0.1:53] for [.] is Available
  [8.8.8.8:53, 8.8.4.4:53] for [.] is Available
  [172.25.16.7:53, 10.100.0.18:53] for [internal-example-cloud2.com] is Unavailable, reason: 2 errors occurred:
	* write udp 10.90.211.76:61742->10.100.0.18:53: write: can't assign requested address
	* write udp 192.168.0.102:59568->172.25.16.7:53: write: can't assign requested address
FQDN: laptop-51896.netbird.selfhosted
NetBird IP: 100.77.202.187/16
Interface type: Userspace
Quantum resistance: false
Routes: -
Peers count: 3/3 Connected

Expected behavior

The connectivity to our routers works fine. The user reach the server and execute request (e.g. by adding DNS Host header) but the problem is DNS. It looks like for some reason selected clients have write: can't assign requested address when trying to write that UDP.

Are you using NetBird Cloud?

Self-host NetBird's control plane (0.28.9).

NetBird version

Client version: 0.32.0 (but user had this in 0.28.9 - the same as server, just upgraded to latest to check if problem exist).

NetBird status -dA output:

For non-problematic user DNS status looks like:

OS: darwin/arm64
Daemon version: 0.30.0
CLI version: 0.30.0
Management: Connected to https://intranet.anon-FDRBR.domain:33073
Signal: Connected to http://intranet.anon-FDRBR.domain:10000
Relays:
  [stun:intranet.anon-FDRBR.domain:3478] is Available
  [turn:intranet.anon-FDRBR.domain:3478?transport=udp] is Available
Nameservers:
  [172.31.0.2:53] for [anon-lOBIO.domain] is Available
  [1.1.1.1:53, 1.0.0.1:53] for [.] is Available
  [8.8.8.8:53, 8.8.4.4:53] for [.] is Available
  [172.25.16.7:53, 10.100.0.18:53] for [internal.anon-FDRBR.domain, gcp.anon-hIzBU.domain] is Available
FQDN: laptop-xyz.netbird.selfhosted
NetBird IP: 100.77.68.36/16
Interface type: Userspace
Quantum resistance: false
Routes: -
Peers count: 3/3 Connected

Any recommendation what could be the issue are welcome (I suspect this is some with different DNS handling for different client).

Originally created by @pnowy on GitHub (Nov 21, 2024). **Describe the problem** We are using NetBird for some time for group of people but sometimes some users reports the problem with DNS (we have 2 internal zones within GCP/AWS clouds, added conditionally in NetBird). **To Reproduce** Problem exist only for selected users. Cannot easily be reproduced. What's DNS logs showing for the problematic user: ``` OS: darwin/arm64 Daemon version: 0.32.0 CLI version: 0.32.0 Management: Connected to https://intranet.example.com:33073 Signal: Connected to http://intranet.example.com:10000 Relays: [stun:intranet.example.com:3478] is Available [turn:intranet.example.com:3478?transport=udp] is Available Nameservers: [172.31.0.2:53] for [internal-example-cloud1.com] is Unavailable, reason: 1 error occurred: * write udp 192.168.0.102:50905->172.31.0.2:53: write: can't assign requested address [1.1.1.1:53, 1.0.0.1:53] for [.] is Available [8.8.8.8:53, 8.8.4.4:53] for [.] is Available [172.25.16.7:53, 10.100.0.18:53] for [internal-example-cloud2.com] is Unavailable, reason: 2 errors occurred: * write udp 10.90.211.76:61742->10.100.0.18:53: write: can't assign requested address * write udp 192.168.0.102:59568->172.25.16.7:53: write: can't assign requested address FQDN: laptop-51896.netbird.selfhosted NetBird IP: 100.77.202.187/16 Interface type: Userspace Quantum resistance: false Routes: - Peers count: 3/3 Connected ``` **Expected behavior** The connectivity to our routers works fine. The user reach the server and execute request (e.g. by adding DNS Host header) but the problem is DNS. It looks like for some reason selected clients have `write: can't assign requested address` when trying to write that UDP. **Are you using NetBird Cloud?** Self-host NetBird's control plane (0.28.9). **NetBird version** Client version: 0.32.0 (but user had this in 0.28.9 - the same as server, just upgraded to latest to check if problem exist). **NetBird status -dA output:** For non-problematic user DNS status looks like: ``` OS: darwin/arm64 Daemon version: 0.30.0 CLI version: 0.30.0 Management: Connected to https://intranet.anon-FDRBR.domain:33073 Signal: Connected to http://intranet.anon-FDRBR.domain:10000 Relays: [stun:intranet.anon-FDRBR.domain:3478] is Available [turn:intranet.anon-FDRBR.domain:3478?transport=udp] is Available Nameservers: [172.31.0.2:53] for [anon-lOBIO.domain] is Available [1.1.1.1:53, 1.0.0.1:53] for [.] is Available [8.8.8.8:53, 8.8.4.4:53] for [.] is Available [172.25.16.7:53, 10.100.0.18:53] for [internal.anon-FDRBR.domain, gcp.anon-hIzBU.domain] is Available FQDN: laptop-xyz.netbird.selfhosted NetBird IP: 100.77.68.36/16 Interface type: Userspace Quantum resistance: false Routes: - Peers count: 3/3 Connected ``` Any recommendation what could be the issue are welcome (I suspect this is some with different DNS handling for different client).
saavagebueno added the waiting-feedbacktriage-needed labels 2025-11-20 05:30:18 -05:00
Author
Owner

@mgarces commented on GitHub (Nov 21, 2024):

Hi,
can you share the output for netbird status -dA --filter-by-ips 10.100.0.18 from the peer that is having DNS (assuming 10.100.0.18 is the DNS peer).

@mgarces commented on GitHub (Nov 21, 2024): Hi, can you share the output for `netbird status -dA --filter-by-ips 10.100.0.18` from the peer that is having DNS (assuming `10.100.0.18` is the DNS peer).
Author
Owner

@pnowy commented on GitHub (Nov 21, 2024):

Requested the problematic client for details, will put here when get them.

@pnowy commented on GitHub (Nov 21, 2024): Requested the problematic client for details, will put here when get them.
Author
Owner

@pnowy commented on GitHub (Nov 25, 2024):

Hi, the requested output:

sh-3.2# netbird status -dA --filter-by-ips 10.100.0.18
Peers detail:
OS: darwin/arm64
Daemon version: 0.32.0
CLI version: 0.32.0
Management: Connected to https://intranet.anon-0gvfk.domain:33073/
Signal: Connected to http://intranet.anon-0gvfk.domain:10000/
Relays: 
  [stun:intranet.anon-0gvfk.domain:3478] is Available
  [turn:intranet.anon-0gvfk.domain:3478?transport=udp] is Available
  [rel://intranet.anon-0gvfk.domain:33080] is Available
Nameservers: 
  [[8.8.8.8:53](http://8.8.8.8:53/), [8.8.4.4:53](http://8.8.4.4:53/)] for [.] is Available
  [[172.25.16.7:53](http://172.25.16.7:53/), [10.100.0.18:53](http://10.100.0.18:53/)] for [internal.anon-0gvfk.domain, gcp.anon-7y1ER.domain] is Unavailable, reason: 2 errors occurred:
    * write udp 10.90.211.76:60273->[10.100.0.18:53](http://10.100.0.18:53/): write: can't assign requested address
    * write udp 192.168.0.102:54831->[172.25.16.7:53](http://172.25.16.7:53/): write: can't assign requested address
  [[172.31.0.2:53](http://172.31.0.2:53/)] for [anon-4FW3N.domain, eu-west-2.anon-7y1ER.domain] is Unavailable, reason: 1 error occurred:
    * write udp 192.168.0.102:58539->[172.31.0.2:53](http://172.31.0.2:53/): write: can't assign requested address
  [[1.1.1.1:53](http://1.1.1.1:53/), [1.0.0.1:53](http://1.0.0.1:53/)] for [.] is Available
FQDN: lp2-ap-51896738.netbird.selfhosted
NetBird IP: [100.77.202.187/16](http://100.77.202.187/16)
Interface type: Userspace
Quantum resistance: false
Routes: -
Peers count: 0/0 Connected
@pnowy commented on GitHub (Nov 25, 2024): Hi, the requested output: ``` sh-3.2# netbird status -dA --filter-by-ips 10.100.0.18 Peers detail: OS: darwin/arm64 Daemon version: 0.32.0 CLI version: 0.32.0 Management: Connected to https://intranet.anon-0gvfk.domain:33073/ Signal: Connected to http://intranet.anon-0gvfk.domain:10000/ Relays: [stun:intranet.anon-0gvfk.domain:3478] is Available [turn:intranet.anon-0gvfk.domain:3478?transport=udp] is Available [rel://intranet.anon-0gvfk.domain:33080] is Available Nameservers: [[8.8.8.8:53](http://8.8.8.8:53/), [8.8.4.4:53](http://8.8.4.4:53/)] for [.] is Available [[172.25.16.7:53](http://172.25.16.7:53/), [10.100.0.18:53](http://10.100.0.18:53/)] for [internal.anon-0gvfk.domain, gcp.anon-7y1ER.domain] is Unavailable, reason: 2 errors occurred: * write udp 10.90.211.76:60273->[10.100.0.18:53](http://10.100.0.18:53/): write: can't assign requested address * write udp 192.168.0.102:54831->[172.25.16.7:53](http://172.25.16.7:53/): write: can't assign requested address [[172.31.0.2:53](http://172.31.0.2:53/)] for [anon-4FW3N.domain, eu-west-2.anon-7y1ER.domain] is Unavailable, reason: 1 error occurred: * write udp 192.168.0.102:58539->[172.31.0.2:53](http://172.31.0.2:53/): write: can't assign requested address [[1.1.1.1:53](http://1.1.1.1:53/), [1.0.0.1:53](http://1.0.0.1:53/)] for [.] is Available FQDN: lp2-ap-51896738.netbird.selfhosted NetBird IP: [100.77.202.187/16](http://100.77.202.187/16) Interface type: Userspace Quantum resistance: false Routes: - Peers count: 0/0 Connected ```
Author
Owner

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

Hello @pnowy,

We're currently reviewing our open issues and would like to verify if this problem still exists in the latest NetBird version.

Could you please confirm if the issue is still there?

We may close this issue temporarily if we don't hear back from you within 2 weeks, but feel free to reopen it with updated information.

Thanks for your contribution to improving the project!

@nazarewk commented on GitHub (Apr 28, 2025): Hello @pnowy, We're currently reviewing our open issues and would like to verify if this problem still exists in the [latest NetBird version](https://github.com/netbirdio/netbird/releases). Could you please confirm if the issue is still there? We may close this issue temporarily if we don't hear back from you within **2 weeks**, but feel free to reopen it with updated information. Thanks for your contribution to improving the project!
Author
Owner

@pnowy commented on GitHub (Apr 28, 2025):

Hello @nazarewk,

closing the issue as I did not get any similar issues reported recently. Thanks for a such great open source project!

@pnowy commented on GitHub (Apr 28, 2025): Hello @nazarewk, closing the issue as I did not get any similar issues reported recently. Thanks for a such great open source project!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#1436