Documentation ¶ Index ¶ type Server func NewServer(fakeIPRange, hostsLine string) (*Server, error) func (s *Server) IPToHost(ip net.IP) string func (s *Server) ServeDNS(w D.ResponseWriter, r *D.Msg) func (s *Server) StartServer(addr string) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Server ¶ type Server struct { *D.Server // contains filtered or unexported fields } func NewServer ¶ func NewServer(fakeIPRange, hostsLine string) (*Server, error) func (*Server) IPToHost ¶ func (s *Server) IPToHost(ip net.IP) string func (*Server) ServeDNS ¶ func (s *Server) ServeDNS(w D.ResponseWriter, r *D.Msg) func (*Server) StartServer ¶ func (s *Server) StartServer(addr string) error Source Files ¶ View all Source files middleware.go server.go util.go Click to show internal directories. Click to hide internal directories.