diff --git a/ex/q/q.go b/ex/q/q.go index 0247e84e..44a958cd 100644 --- a/ex/q/q.go +++ b/ex/q/q.go @@ -192,10 +192,6 @@ Flags: m.Question[0] = dns.Question{dns.Fqdn(v), qtype, qclass} m.Id = dns.Id() - if *query { - fmt.Printf("%s", m.String()) - fmt.Printf("\n;; size: %d bytes\n\n", m.Len()) - } // Add tsig if *tsig != "" { if algo, name, secret, ok := tsigKeyParse(*tsig); ok { @@ -206,6 +202,10 @@ Flags: return } } + if *query { + fmt.Printf("%s", m.String()) + fmt.Printf("\n;; size: %d bytes\n\n", m.Len()) + } if qtype == dns.TypeAXFR { c.Net = "tcp" doXfr(c, m, nameserver)