dns

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostsFile added in v0.8.0

type HostsFile struct {
	// contains filtered or unexported fields
}

func NewHostsFile added in v0.8.0

func NewHostsFile(hostsPath string) (*HostsFile, error)

NewHostsFile Creates new HostsFile instance Pass ""(empty string) if you want to use default hosts file

func (*HostsFile) LookupByHostname added in v0.8.0

func (h *HostsFile) LookupByHostname(name string) (net.IP, error)

type Server added in v0.6.2

type Server struct {
	// contains filtered or unexported fields
}

func New added in v0.6.2

func New(udpConn net.PacketConn, tcpLn net.Listener, zones []types.Zone) (*Server, error)

func (*Server) Mux added in v0.6.2

func (s *Server) Mux() http.Handler

func (*Server) Serve added in v0.6.2

func (s *Server) Serve() error

func (*Server) ServeTCP added in v0.6.2

func (s *Server) ServeTCP() error

Jump to

Keyboard shortcuts

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