> Thanks, but it seems to work with very recent Unbounds only (the one
> in Debian stable, or the one in Ubuntu LTS reply REFUSED).
Unbound 1.6.2, 24 april 2017:
Add trustanchor.unbound CH TXT that gets a response with a number of
TXT RRs with a string like "example.com. 2345 1234" with the trust
anchors and their keytags.
The advice for Unbound is not perfect. It says "Look in the root.key
file in Unbound's configuration directory, which is usually
/etc/unbound." A Debian default installation, for instance, does not
put the TA file there (/etc/unbound is not writable, which prevents
RFC 5011 to work). I would suggest "Look in the trust anchors file. It
is indicated in Unbound's configuration file(s), which location depend
on your operating system. In the configuratin file(s), search
directives trust-anchor-file or auto-trust-anchor-file, then display
the indicated trust anchor file."
For Knot Resolver, the keys file indicate the key tag, so it is not
necessary to check the entire key. Here is an example (this Knot
installation does not use the ICANN root):