Implement Restricted nameservers / Split DNS #60

Closed
opened 2025-12-29 01:21:21 +01:00 by adam · 4 comments
Owner

Originally created by @apognu on GitHub (Oct 19, 2021).

As far as I could find in the code, headscale does not handle what is described here as Restricted nameservers or Split DNS (nameservers that are only used for specific domain suffixes).

I have a use case where machines in the same subnet as a Tailscale node can be resolved through an internal DNS server, and this feature would help greatly in that regard.

Are there any specific blocking reasons for this not being implemented yet? If not, I can try and work on it and draft a PR, if this is something you would like included in the project.

Originally created by @apognu on GitHub (Oct 19, 2021). As far as I could find in the code, headscale does not handle what is [described here](https://tailscale.com/kb/1054/dns/) as *Restricted nameservers* or *Split DNS* (nameservers that are only used for specific domain suffixes). I have a use case where machines in the same subnet as a Tailscale node can be resolved through an internal DNS server, and this feature would help greatly in that regard. Are there any specific blocking reasons for this not being implemented yet? If not, I can try and work on it and draft a PR, if this is something you would like included in the project.
adam closed this issue 2025-12-29 01:21:21 +01:00
Author
Owner

@juanfont commented on GitHub (Oct 19, 2021):

I will probably have a PR ready this evening :)

@juanfont commented on GitHub (Oct 19, 2021): I will probably have a PR ready this evening :)
Author
Owner

@apognu commented on GitHub (Oct 19, 2021):

Fair enough, I'll close my code editor then.

Thank you!

@apognu commented on GitHub (Oct 19, 2021): Fair enough, I'll close my code editor then. Thank you!
Author
Owner

@juanfont commented on GitHub (Oct 20, 2021):

Done!

It's available in v0.10.5

@juanfont commented on GitHub (Oct 20, 2021): Done! It's available in v0.10.5
Author
Owner

@apognu commented on GitHub (Oct 20, 2021):

Works perfectly on my side! Thanks!

@apognu commented on GitHub (Oct 20, 2021): Works perfectly on my side! Thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#60