Documentation
¶
Index ¶
- Variables
- func DebugDNS(quiz, resp *dns.Msg)
- func ParseUint(s string) (n uint64)
- func RegisterService(dnsnet string, dnsaddrs []string) (err error)
- func TestHttpsDns(t *testing.T)
- func TranslateRRs(jrs *[]DNSRR, rrs *[]dns.RR)
- type DNSMsg
- type DNSQuestion
- type DNSRR
- type Dns
- type Exchanger
- type HttpsDns
- type Resolver
- type TcpClient
- type TcpServer
- type WrapExchanger
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMessageTooLarge = errors.New("message body too large") ErrNoDnsServers = errors.New("no dns servers") ErrUnknown = errors.New("unknown error") )
View Source
var (
DEBUGDNS = true
)
Functions ¶
func RegisterService ¶
func TestHttpsDns ¶
func TranslateRRs ¶
Types ¶
type DNSMsg ¶
type DNSMsg struct {
Status int32 `json:"Status,omitempty"`
TC bool `json:"TC,omitempty"`
RD bool `json:"RD,omitempty"`
RA bool `json:"RA,omitempty"`
AD bool `json:"AD,omitempty"`
CD bool `json:"CD,omitempty"`
Question []DNSQuestion `json:"Question,omitempty"`
Answer []DNSRR `json:"Answer,omitempty"`
Authority []DNSRR `json:"Authority,omitempty"`
Additional []DNSRR `json:"Additional,omitempty"`
Edns_client_subnet string `json:"edns_client_subnet,omitempty"`
Comment string `json:"Comment,omitempty"`
}
type DNSQuestion ¶
type DNSRR ¶
type HttpsDns ¶
type HttpsDns struct {
Resolver
// contains filtered or unexported fields
}
type TcpClient ¶
type TcpClient struct {
Resolver
// contains filtered or unexported fields
}
func NewTcpClient ¶
type WrapExchanger ¶
type WrapExchanger struct {
Exchanger
}
Click to show internal directories.
Click to hide internal directories.