Prepare a new feature in key

This commit is contained in:
Miek Gieben 2012-01-11 22:17:52 +01:00
parent 1bac1ee4b9
commit 771c659d66
1 changed files with 7 additions and 4 deletions

View File

@ -22,6 +22,7 @@ func main() {
dnssec := flag.Bool("dnssec", false, "request DNSSEC records")
query := flag.Bool("question", false, "show question")
short := flag.Bool("short", false, "abbreviate long DNSKEY and RRSIG RRs")
check := flag.Bool("check", false, "check internal DNSSEC consistency")
port := flag.Int("port", 53, "port number to use")
aa := flag.Bool("aa", false, "set AA flag in query")
ad := flag.Bool("ad", false, "set AD flag in query")
@ -113,7 +114,6 @@ Flags:
o.SetNsid("")
}
m.Extra = append(m.Extra, o)
//m.SetEdns0(dns.DefaultMsgSize, true)
}
if *fp {
@ -144,9 +144,12 @@ forever:
if *short {
r.Reply = shortMsg(r.Reply)
}
if *fp {
fmt.Printf("%s\n", msgToFingerprint(r.Reply))
}
if *check {
// Get the signatures from the message
// Get the keys mentioned from the internet
// Validate it
}
fmt.Printf("%v", r.Reply)
}
i++