Documentation ¶ Index ¶ func Cname(host string) string type Handler func (h *Handler) ServeDNS(w dns.ResponseWriter, req *dns.Msg) type Server func Start(udpLocalPort, tcpLocalPort int, IPv6 bool, hosts map[string]string) (*Server, error) func (s *Server) Shutdown() Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Cname ¶ func Cname(host string) string Types ¶ type Handler ¶ type Handler struct { IPv6 bool // contains filtered or unexported fields } func (*Handler) ServeDNS ¶ func (h *Handler) ServeDNS(w dns.ResponseWriter, req *dns.Msg) type Server ¶ type Server struct { // contains filtered or unexported fields } func Start ¶ func Start(udpLocalPort, tcpLocalPort int, IPv6 bool, hosts map[string]string) (*Server, error) func (*Server) Shutdown ¶ func (s *Server) Shutdown() Source Files ¶ View all Source files dns.go Click to show internal directories. Click to hide internal directories.