Do it after short
This commit is contained in:
parent
5291767e24
commit
283d984261
|
@ -141,22 +141,22 @@ forever:
|
||||||
fmt.Printf("Id mismatch\n")
|
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 {
|
if *short {
|
||||||
r.Reply = shortMsg(r.Reply)
|
r.Reply = shortMsg(r.Reply)
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Printf("%v", 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++
|
i++
|
||||||
if i == len(qname) {
|
if i == len(qname) {
|
||||||
|
|
Loading…
Reference in New Issue