fakedns

package
v1.17.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL