nullify the ttl of the key

This commit is contained in:
Miek Gieben 2011-07-07 13:13:34 +02:00
parent 582766d6fe
commit 3c6e18e7b6
1 changed files with 1 additions and 0 deletions

View File

@ -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)