fakedns

package
v1.18.1 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2019 License: MIT Imports: 7 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, size int) (*Server, error)

func (*Server) IPToHost

func (s *Server) IPToHost(ip net.IP) (string, bool)

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