diff --git a/pkg/query/query.go b/pkg/query/query.go index c048130..e1fc132 100644 --- a/pkg/query/query.go +++ b/pkg/query/query.go @@ -12,11 +12,6 @@ import ( "github.com/miekg/dns" ) -const ( - tcp = "tcp" - udp = "udp" -) - // CreateQuery creates a DNS query from the options given. // It sets query flags and EDNS flags from the respective options. func CreateQuery(opts util.Options) (util.Response, error) { @@ -140,7 +135,7 @@ func CreateQuery(opts util.Options) (util.Response, error) { resolver, err := resolvers.LoadResolver(opts) if err != nil { - return util.Response{}, err + return util.Response{}, fmt.Errorf("unable to load resolvers: %v", err) } opts.Logger.Info("Query successfully loaded")