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

Unable to create CAA record #36

Closed
davidolrik opened this issue Apr 17, 2018 · 2 comments
Closed

Unable to create CAA record #36

davidolrik opened this issue Apr 17, 2018 · 2 comments

Comments

@davidolrik
Copy link

I have tried a lot of permutations of this command:

cfcli -d example.com add -t CAA example.com. 0 issue "letsencrypt.org"

But I always get Error: Response code 400 (Bad Request)

@danielpigott
Copy link
Owner

Based on the cloudflare API docs (https://api.cloudflare.com/#dns-records-for-a-zone-create-dns-record) the add command doesn't support creating CAA records with the add record api endpoint. There may be another api endpoint that supports it, but I'd have to look into it.

@ghost
Copy link

ghost commented Nov 3, 2018

For what it is worth, it seems to be possible to create CAA records through the API with a bit of finessing, using a request like the one below. As far as I can tell, the records appear normally on the Dashboard and behave properly.

curl -H "Content-Type: application/json" -H "X-Auth-Key:my_auth_key" -H "X-Auth-Email:email@example.com" -X 'POST' --data '{"type":"CAA","name":"example.com","data":{"flags": 0,"tag": "issue","value": "letsencrypt.org"},"ttl":1,"proxied":false}' https://api.Cloudflare.com/client/v4/zones/my_zone_identifier/dns_records

Note, however, that Cloudflare publishes dire warnings about CAA records, insisting that they could block the generation of certificates for Universal SSL and cause the entire thing to implode.

I have received very conflicting and confusing replies from Support as to the actual behaviour of the platform. I was told that Cloudflare will automatically add the necessary CAA records to domains that publish CAA records of their own to begin with, but not to domains that don’t. That does not square with the docs, neither does it square with my personal experience, but they were adamant.

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

No branches or pull requests

2 participants