Print the query packet after adding the tsig
This commit is contained in:
parent
99817d7c33
commit
025362a820
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue