Do it after short

This commit is contained in:
Miek Gieben 2012-01-21 12:28:50 +01:00
parent 5291767e24
commit 283d984261
1 changed files with 11 additions and 11 deletions

View File

@ -141,22 +141,22 @@ forever:
fmt.Printf("Id mismatch\n")
}
}
if *check {
sigCheck(r.Reply, nameserver)
if err := r.Reply.Nsec3Verify(r.Reply.Question[0]); err == nil {
//Could be: no nsec3 records
//fmt.Printf(";+ Correct authenticated denial of existence (NSEC3)\n")
} else {
fmt.Printf(";- Incorrect authenticated denial of existence (NSEC3): %s\n",err.Error())
}
println()
}
if *short {
r.Reply = shortMsg(r.Reply)
}
fmt.Printf("%v", r.Reply)
if *check {
println()
sigCheck(r.Reply, nameserver)
if err := r.Reply.Nsec3Verify(r.Reply.Question[0]); err == nil {
fmt.Printf(";+ Correct authenticated denial of existence (NSEC3)\n")
} else {
// Could be: no nsec3 records
// fmt.Printf(";- Incorrect authenticated denial of existence (NSEC3): %s\n",err.Error())
}
}
}
i++
if i == len(qname) {