I ve got zone `bar com` already hosted

I've got zone bar.com already hosted in Cloudflare and I'm adding foo.bar.com to be its own independent zone. I've configured a couple of NS records in Terraform for foo.bar.com to be added to bar.com, however it thinks the NS records already exist (they might exist on foo.bar.com but definitely not on bar.com). The error is:
expected DNS record to not already be present but already exists
expected DNS record to not already be present but already exists
Any ideas?
2 Replies
gonz
gonzOP3y ago
I even checked using the Cloudflare API and there's definitely no NS records on bar.com for foo.bar.com. nvm... it was complaining that there were other non-NS records but the cloudflare TF provider only checks for "already exist" in the error message.
Jaime
Jaime3y ago
Nice domain btw Never mind, I just realized it's a placeholder name

Did you find this page helpful?