terraform-provider-tailscale
terraform-provider-tailscale copied to clipboard
Split DNS support
Is your feature request related to a problem? Please describe.
I need to be able to set up a Restricted Nameserver or Split DNS for a particular domain
Describe the solution you'd like
Something like the following
resource "tailscale_dns_restricted_nameserver" "example_com" {
search_domain = "example.com"
nameserver = ["1.2.3.4"]
}
Context
There is not yet a public API to set Split DNS nameservers: https://github.com/tailscale/tailscale/blob/main/api.md#tailnet-dns-nameservers-post
The public API was blocked by the need to remove the use of fallback resolvers: https://github.com/tailscale/tailscale/issues/1743 A control server update to remove fallback resolvers deployed one week ago.
After the API is updated, the Terraform provider can be updated to add Split DNS support.
Is there any update on this?
There is not yet a public API to set Split DNS nameservers. A feature request to do so is tracked in https://github.com/tailscale/tailscale/issues/5932
Hey! Would love to see this feature implemented! I see that the issue https://github.com/tailscale/tailscale/issues/5932 is closed. Are there any estimations about tf provider update?
https://github.com/tailscale/tailscale/issues/5932 was closed as a duplicate of https://github.com/tailscale/tailscale/issues/2661, which is still open. There is not currently a public API to set Split DNS nameservers.
@DentonGentry ah, you're right. Thanks, looking forward to further updates.
Any updates? Would be awesome to not have to set these by hand 😁 Thanks
Looks like we finally got a PR: https://github.com/tailscale/terraform-provider-tailscale/pull/359
This is resolved as of #359 . A new tailscale_dns_split_nameservers resource has been added as of the v0.16.0 release.