-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Description
Is your feature request related to a problem? Please describe.
Yes, it is. When managing internal services like relays, databases, or application backends within a NetBird network, we rely on DNS resolvers to connect to them via hostnames. This reliance introduces a potential point of failure and adds latency. If our designated DNS resolver is slow, misconfigured, or temporarily unavailable, access to critical internal infrastructure is disrupted. We need a more resilient and faster way to resolve a few key internal hostnames that is independent of traditional DNS queries.
Describe the solution you'd like
I would like a new feature within the NetBird management UI, preferably under the DNS section, called Static DNS Records (or a similar name). This feature would allow an administrator to define a list of static host-to-IP mappings.
For example, I could create an entry like:
- Hostname: relay01.domain.com
- IP Address: 192.168.0.1
These defined records would be pushed out to all connected NetBird clients. When a client needs to resolve relay01.domain.com, it would immediately use the provided IP 192.168.0.1 from its local NetBird configuration, completely bypassing any system or network DNS resolvers. This would function like a centrally-managed, distributed hosts file for the entire VPN.
Describe alternatives you've considered
-
Manually editing the hosts file on each client: This is not a viable solution. It is extremely difficult to manage, scale, and keep updated across multiple devices. It's also highly error-prone and requires manual access to every machine.
-
Running a dedicated internal DNS server: This adds significant overhead. It requires setting up, securing, and maintaining another piece of infrastructure just to resolve a handful of static internal records. This complicates the network setup and introduces another potential point of failure, which is what we are trying to avoid.
Additional context
This feature would greatly improve the speed and resilience of connections to critical internal infrastructure. For services like high-availability relays or jump hosts, having their hostnames resolve instantly and reliably, without external dependencies, is a major advantage. It simplifies the overall network architecture by removing the need for complex split-DNS configurations for a few essential services.