godns/resolver/question.go
2020-02-07 22:38:22 -05:00

14 lines
220 B
Go

package resolver
import "github.com/miekg/dns"
type Question struct {
Name string
Type uint16
Class string
}
func (q *Question) String() string {
return q.Name + " " + q.Class + " " + dns.TypeToString[q.Type]
}