fix ensure type
calc dnskey tag