dns.dnssec.rrsig_wildcard

dns.dnssec

rrsig_wildcard(rrsig_rr, owner) -> encloser

Find the wildcard an RRSIG shows its RRset was expanded from

An RRSIG counts the labels of the name it signs, without the root and without a leading * (RFC 4034 §3.1.3). An owner with more labels was expanded from a wildcard (RFC 4035 §5.3.2). Returns that wildcard's parent, the closest encloser of owner: w.example. for a.z.w.example. under an RRSIG that counts two labels.

Returns nil when the counts agree. The wildcard's own name is no expansion, so *.w.example. under the same RRSIG gives nil too.