[dns-operations] calculating DNSSEC keytags in sed (was: RE: calculating DNSSEC keytags in awk)

Zuleger, Holger, Vodafone DE holger.zuleger at vodafone.com
Thu Apr 16 11:58:34 UTC 2015


> In our case "dnssec-ds formkey" is not available.

What about
	$ dig +noall +answer +multi DNSKEY $zone |
	> sed -n '/key id/s/^.*= //p'
for all keys, or

	$ dig +noall +answer +multi DNSKEY $zone |
	> sed -n '/KSK/s/^.*= //p'
if you only want to see the key id of the KSK.

Holger
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6179 bytes
Desc: not available
URL: <https://lists.dns-oarc.net/pipermail/dns-operations/attachments/20150416/e0f65e6c/attachment.bin>


More information about the dns-operations mailing list