netbirdio / netbird

Connect your devices into a single secure private WireGuard®-based mesh network with SSO/MFA and simple access controls.
https://netbird.io
BSD 3-Clause "New" or "Revised" License
9.81k stars 426 forks source link

DNS server doesn't handle domain name capitalisation correctly #2135

Open tillnelown opened 2 weeks ago

tillnelown commented 2 weeks ago

Describe the problem

When a DNS query uses random capitalisation like the one which is used to prevent cache poisoning Netbird will respond with NXDOMAIN.

To Reproduce

Steps to reproduce the behavior:

  1. Connect to a Netbird network
  2. Run a DNS query to the local resolver for a hostname dig @10.74.x.y <hostname>.<domain> works but dig @10.74.x.y <hOstName>.<dOmAin> does not dig @10.74.42.7 me.client.netbird works but dig @10.74.42.7 Me.Client.netbird does not

Expected behavior

Netbird should ignore these capitalisations as they are not relevant in this context.

Are you using NetBird Cloud?

I'm using the selfhosted instance though this seems like a client issue.

NetBird version

netbird version 0.27.10