A Ruby implementation of DNS - Certificate Authority Authorization (CAA) checks as per RFC 6844 Section 4 (Errata 5065, 5097)
Uses the local nameserver configuration for RR requests.
There are two way to check CAA for a domain
caa = CAAuth.new
caa.domain="x.y.z"
caa.CAA #=>returns a hash with :domain, :loc, :flag, :tag, :value
.
or
caa.check('x.y.z') #=>returns a hash with :domain, :loc, :flag, :tag, :value
returns a hash containing
:domain -> the primary domain
:loc -> the location where the CAA RR was found. I.e., primary, CNAME, hierarchy (parent or grandparent domain), hierarchy-CNAME
:flag, :tag, :value -> as per RFC 6844