netbird dns resolution does not work with capital letters #1609

Open
opened 2025-11-20 05:33:46 -05:00 by saavagebueno · 0 comments
Owner

Originally created by @sarahsevee on GitHub (Feb 10, 2025).

Describe the problem

Netbird dns resolution only works, if all characters of a hostname are in lowercase on the client, irregardless how the name is capitalized in netbird. If a single letter of the name is capitalized, it will not find it. This happens in both Windows and MacOS, Linux does not seem to be affected. Tested with both nslookup and ping.

RDP/SSH also do not work, if used with capitalized names.

Once a lowercase name has been resolved on the client OS, capitalization is not an issue anymore, as long as the dns entry is cached.

nslookup output:

user@MacBook-Air ~ % nslookup
> TEST
Server:		100.84.255.254
Address:	100.84.255.254#53

** server can't find TEST: NXDOMAIN
> test
Server:		100.84.255.254
Address:	100.84.255.254#53

Non-authoritative answer:
Name:	test.nb.xxx
Address: 100.84.94.92
> Test
Server:		100.84.255.254
Address:	100.84.255.254#53

** server can't find Test: NXDOMAIN
> test
Server:		100.84.255.254
Address:	100.84.255.254#53

Non-authoritative answer:
Name:	test.nb.xxx
Address: 100.84.94.92
> tesT
Server:		100.84.255.254
Address:	100.84.255.254#53

** server can't find tesT: NXDOMAIN
> test
Server:		100.84.255.254
Address:	100.84.255.254#53

Non-authoritative answer:
Name:	test.nb.xxx
Address: 100.84.94.92
> TEST
#Server:		100.84.255.254
Address:	100.84.255.254#53

** server can't find TEST: NXDOMAIN

ping output:

user@MacBook-Air ~ % ping TEST
ping: cannot resolve TEST: Unknown host

user@MacBook-Air ~ % ping test
PING test.nb.xxx (100.84.94.92): 56 data bytes
64 bytes from 100.84.94.92: icmp_seq=0 ttl=64 time=88.732 ms

user@MacBook-Air ~ % ping TEST
PING test.nb.xxx (100.84.94.92): 56 data bytes
64 bytes from 100.84.94.92: icmp_seq=0 ttl=64 time=86.653 ms

Expected behavior

Any form of capitalization of a hostname should work.

Are you using NetBird Cloud?

Self-Hosted

NetBird version

OS: darwin/arm64
Daemon version: 0.36.5
CLI version: 0.36.5

Additional context

Add any other context about the problem here.

Originally created by @sarahsevee on GitHub (Feb 10, 2025). **Describe the problem** Netbird dns resolution only works, if all characters of a hostname are in lowercase on the client, irregardless how the name is capitalized in netbird. If a single letter of the name is capitalized, it will not find it. This happens in both Windows and MacOS, Linux does not seem to be affected. Tested with both nslookup and ping. RDP/SSH also do not work, if used with capitalized names. Once a lowercase name has been resolved on the client OS, capitalization is not an issue anymore, as long as the dns entry is cached. nslookup output: ```` user@MacBook-Air ~ % nslookup > TEST Server: 100.84.255.254 Address: 100.84.255.254#53 ** server can't find TEST: NXDOMAIN > test Server: 100.84.255.254 Address: 100.84.255.254#53 Non-authoritative answer: Name: test.nb.xxx Address: 100.84.94.92 > Test Server: 100.84.255.254 Address: 100.84.255.254#53 ** server can't find Test: NXDOMAIN > test Server: 100.84.255.254 Address: 100.84.255.254#53 Non-authoritative answer: Name: test.nb.xxx Address: 100.84.94.92 > tesT Server: 100.84.255.254 Address: 100.84.255.254#53 ** server can't find tesT: NXDOMAIN > test Server: 100.84.255.254 Address: 100.84.255.254#53 Non-authoritative answer: Name: test.nb.xxx Address: 100.84.94.92 > TEST #Server: 100.84.255.254 Address: 100.84.255.254#53 ** server can't find TEST: NXDOMAIN ```` ping output: ```` user@MacBook-Air ~ % ping TEST ping: cannot resolve TEST: Unknown host user@MacBook-Air ~ % ping test PING test.nb.xxx (100.84.94.92): 56 data bytes 64 bytes from 100.84.94.92: icmp_seq=0 ttl=64 time=88.732 ms user@MacBook-Air ~ % ping TEST PING test.nb.xxx (100.84.94.92): 56 data bytes 64 bytes from 100.84.94.92: icmp_seq=0 ttl=64 time=86.653 ms ```` **Expected behavior** Any form of capitalization of a hostname should work. **Are you using NetBird Cloud?** Self-Hosted **NetBird version** OS: darwin/arm64 Daemon version: 0.36.5 CLI version: 0.36.5 **Additional context** Add any other context about the problem here.
saavagebueno added the clientdns labels 2025-11-20 05:33:46 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#1609