Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split DNS support #149

Closed
davidnortonjr opened this issue Aug 31, 2022 · 9 comments
Closed

Split DNS support #149

davidnortonjr opened this issue Aug 31, 2022 · 9 comments
Labels
enhancement New feature or request

Comments

@davidnortonjr
Copy link

davidnortonjr commented Aug 31, 2022

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

DNS in Tailscale docs

@davidnortonjr davidnortonjr added the enhancement New feature or request label Aug 31, 2022
@DentonGentry
Copy link
Contributor

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: tailscale/tailscale#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.

@anhdle14
Copy link

Is there any update on this?

@DentonGentry
Copy link
Contributor

There is not yet a public API to set Split DNS nameservers. A feature request to do so is tracked in tailscale/tailscale#5932

@gberenice
Copy link

Hey!
Would love to see this feature implemented! I see that the issue tailscale/tailscale#5932 is closed. Are there any estimations about tf provider update?

@DentonGentry
Copy link
Contributor

tailscale/tailscale#5932 was closed as a duplicate of tailscale/tailscale#2661, which is still open. There is not currently a public API to set Split DNS nameservers.

@gberenice
Copy link

@DentonGentry ah, you're right. Thanks, looking forward to further updates.

andrasmaroy added a commit to andrasmaroy/infra that referenced this issue May 5, 2023
Split-dns support is not yet implemented in the terraform provider.
tailscale/terraform-provider-tailscale#149
andrasmaroy added a commit to andrasmaroy/infra that referenced this issue May 5, 2023
Split-dns support is not yet implemented in the terraform provider.
tailscale/terraform-provider-tailscale#149
andrasmaroy added a commit to andrasmaroy/infra that referenced this issue May 5, 2023
Split-dns support is not yet implemented in the terraform provider.
tailscale/terraform-provider-tailscale#149
andrasmaroy added a commit to andrasmaroy/infra that referenced this issue May 5, 2023
Split-dns support is not yet implemented in the terraform provider.
tailscale/terraform-provider-tailscale#149
@mrgasparov
Copy link

Any updates? Would be awesome to not have to set these by hand 😁 Thanks

@aiell0
Copy link

aiell0 commented Apr 30, 2024

Looks like we finally got a PR: #359

@mpminardi
Copy link
Member

This is resolved as of #359 . A new tailscale_dns_split_nameservers resource has been added as of the v0.16.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

7 participants