diff --git a/pkg/query/util.go b/pkg/query/util.go index c7dfe85..393fae6 100644 --- a/pkg/query/util.go +++ b/pkg/query/util.go @@ -19,11 +19,6 @@ var ( ) func (message *Message) displayQuestion(msg *dns.Msg, opts *util.Options, opt *dns.OPT) error { - var ( - name string - err error - ) - for _, question := range msg.Question { if opts.Display.UcodeTranslate { name, err = idna.ToUnicode(question.Name) @@ -82,7 +77,6 @@ func (message *Message) displayAnswers(msg *dns.Msg, opts *util.Options, opt *dn } func (message *Message) displayAuthority(msg *dns.Msg, opts *util.Options, opt *dns.OPT) error { - for _, ns := range msg.Ns { temp := strings.Split(ns.String(), "\t") @@ -120,7 +114,6 @@ func (message *Message) displayAuthority(msg *dns.Msg, opts *util.Options, opt * } func (message *Message) displayAdditional(msg *dns.Msg, opts *util.Options, opt *dns.OPT) error { - for _, additional := range msg.Extra { if additional.Header().Rrtype == dns.StringToType["OPT"] { continue