diff options
| -rw-r--r-- | cmd/resolver/main.go | 2 | ||||
| -rw-r--r-- | cmd/resolverbench/main.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cmd/resolver/main.go b/cmd/resolver/main.go index 1e456c9..26029aa 100644 --- a/cmd/resolver/main.go +++ b/cmd/resolver/main.go @@ -127,7 +127,7 @@ func messagePrint(nameserver string, msg *dns.Message) string { fmt.Fprintf(&b, "< From: %s", nameserver) fmt.Fprintf(&b, "\n> Header: %+v", msg.Header) - fmt.Fprintf(&b, "\n> Question: %s", msg.Question) + fmt.Fprintf(&b, "\n> Question: %s", msg.Question.String()) b.WriteString("\n> Status:") switch msg.Header.RCode { diff --git a/cmd/resolverbench/main.go b/cmd/resolverbench/main.go index c84023e..0b517a2 100644 --- a/cmd/resolverbench/main.go +++ b/cmd/resolverbench/main.go @@ -53,7 +53,7 @@ func main() { log.Printf(`! Answer not matched %s: expecting: %s got: %s -`, msgs[x].Question, exp, got) +`, msgs[x].Question.String(), exp, got) } } timeEnd := time.Now() |
