Coder Social home page Coder Social logo

Comments (2)

danielpigott avatar danielpigott commented on August 12, 2024

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.

from cloudflare-cli.

 avatar commented on August 12, 2024

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 protected]" -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.

from cloudflare-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.