Refactor complext dnskeys method