nullify the ttl of the key
This commit is contained in:
parent
582766d6fe
commit
3c6e18e7b6
|
@ -42,6 +42,7 @@ func main() {
|
|||
for _, k := range r.Answer {
|
||||
// Foreach key would need to provide a DS records, both sha1 and sha256
|
||||
if key, ok := k.(*dns.RR_DNSKEY); ok {
|
||||
key.Hdr.Ttl = 0
|
||||
ds := key.ToDS(dns.HashSHA1)
|
||||
fmt.Printf("%v\n", ds)
|
||||
ds = key.ToDS(dns.HashSHA256)
|
||||
|
|
Loading…
Reference in New Issue