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