Options

DNS CAA record response

mcyorkmcyork Member ✭✭

I am doing things like this:

set rr1 [DNS::rr $name 0 IN TXT "some text here"]

DNS::answer insert $rr1

Now I need to return a CAA record and can't find a way to format the entry to do this. A CAA record looks like this in a zone file.

mydomain.com.	IN	CAA	0 issue "letsencrypt.org"
mydomain.com.	IN	CAA	0 issuewild ";"

Either this is not possible or there is some way I am not yet aware of to stuff the record into place?

Thank you for any insights.

Tagged:

Comments

  • Options
    mcyorkmcyork Member ✭✭

    I have tried several different syntax options but all provide a Error: aFleX compile error

    When I don't get a compile error I get a run time error about too many or not enough arguments.

     set rr2 [DNS::rr $name 300 IN CAA 0 issue "letsencrypt.org"]
     set rr2 [DNS::rr $name 300 IN CAA "0 issue \"letsencrypt.org\""]
     set rr2 {mydomain.com 300 IN CAA 0 issue "letsencrypt.org"}
     set rr2 {mydomain.com 300 IN CAA "0 issue \"letsencrypt.org\""}
    

    All of the above are not getting the record to work.

    Aflex 2.0.0

    Version: 2.7.2-P16(build: 15)

Sign In or Register to comment.