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

Impossible to switch back and fourth between LiveDNS and external DNS #149

Open
marcaurele opened this issue Dec 22, 2023 · 0 comments
Open

Comments

@marcaurele
Copy link

Context

When preparing for changes with Terraform, we are always playing the revert operation to restore the previous state. While playing the restore with the DNS configuration and your provider, we realized it's impossible to reactivate the LiveDNS through Terraform resource.

Example

With this content as the current state of domain:

# Current state
resource "gandi_livedns_domain" "example_com" {
  name = "example.com"
}

you plan a migration to another DNS provider by replacing the previous content and you do apply it for one of them to validate:

# Next state
resource "gandi_nameservers" "example_com" {
  domain = "example.com"
  nameservers = ["ABC", "DEF", "GHI"]
}

The change is correctly applied. But if you to revert back to the current state, cancelling the change for the test domain, the DNS information are not updated on your services (verified on the web UI). The DNS servers are still listed with the next state values 😞 - making any revert operation fully manual. Or say differently it's impossible to activate the LiveDNS from Terraform resources if it was set to external.

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

No branches or pull requests

1 participant