move DNSResult to resolver.go

This commit is contained in:
xvzc 2024-08-19 10:47:03 +09:00
parent f862e3efc7
commit 6c3b46bbea
2 changed files with 5 additions and 5 deletions

View File

@ -8,11 +8,6 @@ import (
"github.com/miekg/dns" "github.com/miekg/dns"
) )
type DNSResult struct {
msg *dns.Msg
err error
}
type GeneralResolver struct { type GeneralResolver struct {
client *dns.Client client *dns.Client
server string server string

View File

@ -19,6 +19,11 @@ type Resolver interface {
String() string String() string
} }
type DNSResult struct {
msg *dns.Msg
err error
}
func recordTypeIDToName(id uint16) string { func recordTypeIDToName(id uint16) string {
switch id { switch id {
case 1: case 1: