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

Error: couldn't find domain record #47

Open
tamis-laan opened this issue Jul 2, 2022 · 1 comment
Open

Error: couldn't find domain record #47

tamis-laan opened this issue Jul 2, 2022 · 1 comment

Comments

@tamis-laan
Copy link

tamis-laan commented Jul 2, 2022

Setting name servers to that of cloudflare. The code worked yesterday now I get:

> terraform plan
╷
│ Error: couldn't find domain record (my.domain): [404:UNKNOWN_DOMAIN] The given domain is not registered, or does not have a zone file
│
│   with godaddy_domain_record.my-domain,
│   on main.tf line 53, in resource "godaddy_domain_record" "my_domain":
│   53: resource "godaddy_domain_record" "my-domain" {
│
╵

Simple code:

// Set nameservers my.domain
resource "godaddy_domain_record" "my-domain" {
	domain   = "my.domain"
	nameservers = ["amalia.ns.cloudflare.com", "sergi.ns.cloudflare.com"]
}

terraform destroy doesn't work. Running rm *.tfstate* does work and terraform apply does work. But on the second run terraform apply I again get the same message.

Did the godaddy api change?

@unoscar
Copy link

unoscar commented Nov 6, 2023

I am having the same error. I think it may be due to the fact that Godaddy may delete the zone record since it does not needed anymore because the NS gives all ownership to cloudflare but the api setup for this provider may need a zone record to exist

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

2 participants