[GH-ISSUE #2496] Allow custom TLDs in DNS #5306

Closed
opened 2026-08-05 01:02:30 -04:00 by saavagebueno · 9 comments
Owner

Originally created by @soymgomez on GitHub (Aug 28, 2024).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/2496

Describe the solution you'd like
While implementing Netbird for a client we have found that they use a custom TLD of the type .company for their internal domains. In the DNS section it only allows to add domains and we cannot add that TLD.

For this case we have modified directly in the sqlite the domain field to include only the custom TLD and everything has worked correctly.

It would be interesting to allow or have a space to add custom TLDs apart from the domains or to allow them as well as the domains.

Originally created by @soymgomez on GitHub (Aug 28, 2024). Original GitHub issue: https://github.com/netbirdio/netbird/issues/2496 **Describe the solution you'd like** While implementing Netbird for a client we have found that they use a custom TLD of the type `.company` for their internal domains. In the DNS section it only allows to add domains and we cannot add that TLD. For this case we have modified directly in the sqlite the domain field to include only the custom TLD and everything has worked correctly. It would be interesting to allow or have a space to add custom TLDs apart from the domains or to allow them as well as the domains.
saavagebueno added the feature-requestdashboarddns labels 2026-08-05 01:02:30 -04:00
Author
Owner

@mlsmaycon commented on GitHub (Aug 29, 2024):

@soymgomez this was a change made for the Nameserver configuration or for the peer domain?

<!-- gh-comment-id:2317048172 --> @mlsmaycon commented on GitHub (Aug 29, 2024): @soymgomez this was a change made for the Nameserver configuration or for the peer domain?
Author
Owner

@michelangelo136 commented on GitHub (Aug 29, 2024):

This would be of use to us as well, could you provide a quick example on how you performed this change?

<!-- gh-comment-id:2317296828 --> @michelangelo136 commented on GitHub (Aug 29, 2024): This would be of use to us as well, could you provide a quick example on how you performed this change?
Author
Owner

@mlsmaycon commented on GitHub (Aug 29, 2024):

@michelangelo136 this was a change made for the Nameserver configuration or for the peer domain?

<!-- gh-comment-id:2317301113 --> @mlsmaycon commented on GitHub (Aug 29, 2024): @michelangelo136 this was a change made for the Nameserver configuration or for the peer domain?
Author
Owner

@soymgomez commented on GitHub (Aug 29, 2024):

@soymgomez this was a change made for the Nameserver configuration or for the peer domain?

For "Match domains" in Nameservers configuration:

image

When editing the nameserver now it appears as invalid because the change was made directly in the database.

This would be of use to us as well, could you provide a quick example on how you performed this change?

We made the change directly in the database, in this case in the sqlite file:

sqlite3 /var/lib/docker/volumes/artifacts_netbird-mgmt/_data/store.db
sqlite> UPDATE name_server_groups SET `domains` = '["company"]';
<!-- gh-comment-id:2317932301 --> @soymgomez commented on GitHub (Aug 29, 2024): > @soymgomez this was a change made for the Nameserver configuration or for the peer domain? For "Match domains" in Nameservers configuration: ![image](https://github.com/user-attachments/assets/65fba616-53d3-4f83-b611-07229409a0cf) When editing the nameserver now it appears as invalid because the change was made directly in the database. > This would be of use to us as well, could you provide a quick example on how you performed this change? We made the change directly in the database, in this case in the sqlite file: ``` sqlite3 /var/lib/docker/volumes/artifacts_netbird-mgmt/_data/store.db sqlite> UPDATE name_server_groups SET `domains` = '["company"]'; ```
Author
Owner

@mlsmaycon commented on GitHub (Aug 29, 2024):

@soymgomez, thanks. Have you tested the API?

@heisbrot, we can probably use a custom parser for the match domain input.

<!-- gh-comment-id:2317998785 --> @mlsmaycon commented on GitHub (Aug 29, 2024): @soymgomez, thanks. Have you tested the API? @heisbrot, we can probably use a custom parser for the match domain input.
Author
Owner

@soymgomez commented on GitHub (Aug 29, 2024):

@soymgomez, thanks. Have you tested the API?

I hadn't tried it, I'll set up a test environment now and see if it will let me add it like this.

<!-- gh-comment-id:2318007122 --> @soymgomez commented on GitHub (Aug 29, 2024): > @soymgomez, thanks. Have you tested the API? I hadn't tried it, I'll set up a test environment now and see if it will let me add it like this.
Author
Owner

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

Hello @soymgomez,

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!

<!-- gh-comment-id:2835659324 --> @nazarewk commented on GitHub (Apr 28, 2025): Hello @soymgomez, 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

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

@nazarewk I just tried to add a custom TLD on the latest selfhosted netbird version and it's still not possible to add the whole TLD as a "domain".

<!-- gh-comment-id:2836941425 --> @michelangelo136 commented on GitHub (Apr 28, 2025): @nazarewk I just tried to add a custom TLD on the latest selfhosted netbird version and it's still not possible to add the whole TLD as a "domain".
Author
Owner

@nazarewk commented on GitHub (May 15, 2025):

@michelangelo136 I appreciate the reply. Seems like it's a mislabeled, duplicate feature-request for #2021, so let's continue there.

<!-- gh-comment-id:2883336252 --> @nazarewk commented on GitHub (May 15, 2025): @michelangelo136 I appreciate the reply. Seems like it's a mislabeled, duplicate feature-request for #2021, so let's continue there.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#5306