show size of query when using -question

This commit is contained in:
Miek Gieben 2012-06-04 13:26:47 +02:00
parent aa238226e2
commit a926bccdd6
1 changed files with 2 additions and 1 deletions

View File

@ -204,7 +204,8 @@ Flags:
m.Question[0] = dns.Question{v, qtype, qclass}
m.Id = dns.Id()
if *query {
fmt.Printf("%s\n", m.String())
fmt.Printf("%s", m.String())
fmt.Printf("\n;; size: %d bytes\n\n", m.Len())
}
// Add tsig
if *tsig != "" {