godns/resolver/question.go

14 lines
220 B
Go
Raw Permalink Normal View History

2020-01-25 17:43:02 +00:00
package resolver
import "github.com/miekg/dns"
2020-01-25 17:43:02 +00:00
type Question struct {
Name string
Type uint16
2020-01-25 17:43:02 +00:00
Class string
}
func (q *Question) String() string {
return q.Name + " " + q.Class + " " + dns.TypeToString[q.Type]
2020-01-25 17:43:02 +00:00
}