Documentation ¶
Index ¶
- type DnsHandler
- func (handler *DnsHandler) AddressRecords(q dns.Question, name string) (records []dns.RR, err error)
- func (handler *DnsHandler) LeadAuthority(url string) ([]config.Authority, error)
- func (handler *DnsHandler) PTRRecords(q dns.Question) (records []dns.RR, err error)
- func (handler *DnsHandler) ResolveDnsQuery(req *dns.Msg, authorities []config.Authority, netProtocol string) (*dns.Msg, error)
- func (handler *DnsHandler) ServeDNS(w dns.ResponseWriter, req *dns.Msg)
- type Hostfile
- type Middleware
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DnsHandler ¶
type DnsHandler struct { Config *config.Config sync.WaitGroup // contains filtered or unexported fields }
func (*DnsHandler) AddressRecords ¶
func (*DnsHandler) LeadAuthority ¶
func (handler *DnsHandler) LeadAuthority(url string) ([]config.Authority, error)
func (*DnsHandler) PTRRecords ¶
func (*DnsHandler) ResolveDnsQuery ¶
func (*DnsHandler) ServeDNS ¶
func (handler *DnsHandler) ServeDNS(w dns.ResponseWriter, req *dns.Msg)
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) UseMiddleware ¶
func (s *Server) UseMiddleware(f Middleware)
Click to show internal directories.
Click to hide internal directories.