[PR #2344] [CLOSED] Split MagicDNS base domain and org domain #2615

Closed
opened 2025-12-29 03:22:03 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/juanfont/headscale/pull/2344
Author: @valkum
Created: 1/14/2025
Status: Closed

Base: mainHead: tailnet-name


📝 Commits (2)

  • 9bc8ecb use correct config value for FQDN
  • cf38758 reflect base_domain as tailnet name in clients

📊 Changes

3 files changed (+18 additions, -5 deletions)

View changed files

📝 config-example.yaml (+4 -0)
📝 hscontrol/mapper/tail.go (+1 -1)
📝 hscontrol/types/config.go (+13 -4)

📄 Description

This fixes #2318 by making cfg.BaseDomain configurable in the config and using cfg.DNSConfig.BaseDomain for creating fqdns.
A fallback is implemented for backwards support.

  • have read the CONTRIBUTING.md file
  • raised a GitHub issue or discussed it on the projects chat beforehand
  • added unit tests
  • added integration tests
  • updated documentation if needed
  • updated CHANGELOG.md

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/juanfont/headscale/pull/2344 **Author:** [@valkum](https://github.com/valkum) **Created:** 1/14/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `tailnet-name` --- ### 📝 Commits (2) - [`9bc8ecb`](https://github.com/juanfont/headscale/commit/9bc8ecbada7dd06cba091d5cc0baeb4f624bfcc6) use correct config value for FQDN - [`cf38758`](https://github.com/juanfont/headscale/commit/cf387588740dd9e1fb3f76265bbe78cb2446a08f) reflect base_domain as tailnet name in clients ### 📊 Changes **3 files changed** (+18 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `config-example.yaml` (+4 -0) 📝 `hscontrol/mapper/tail.go` (+1 -1) 📝 `hscontrol/types/config.go` (+13 -4) </details> ### 📄 Description <!-- Headscale is "Open Source, acknowledged contribution", this means that any contribution will have to be discussed with the Maintainers before being submitted. This model has been chosen to reduce the risk of burnout by limiting the maintenance overhead of reviewing and validating third-party code. Headscale is open to code contributions for bug fixes without discussion. If you find mistakes in the documentation, please submit a fix to the documentation. --> This fixes #2318 by making cfg.BaseDomain configurable in the config and using cfg.DNSConfig.BaseDomain for creating fqdns. A fallback is implemented for backwards support. <!-- Please tick if the following things apply. You… --> - [x] have read the [CONTRIBUTING.md](./CONTRIBUTING.md) file - [x] raised a GitHub issue or discussed it on the projects chat beforehand - [ ] added unit tests - [ ] added integration tests - [ ] updated documentation if needed - [ ] updated CHANGELOG.md <!-- If applicable, please reference the issue using `Fixes #XXX` and add tests to cover your new code. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 03:22:03 +01:00
adam closed this issue 2025-12-29 03:22:03 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#2615