server

package
v1.17.1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RuleSet

type RuleSet struct {
	model.Rule
	*Server
	Name string
	// contains filtered or unexported fields
}

func (*RuleSet) Exchange added in v1.8.6

func (s *RuleSet) Exchange(r *dns.Msg) (*dns.Msg, error)

func (*RuleSet) FindRecord added in v1.8.6

func (s *RuleSet) FindRecord(name string, quesType uint16) *model.Record

func (*RuleSet) FindRecords added in v1.8.6

func (s *RuleSet) FindRecords(name string, quesType uint16) []model.Record

func (*RuleSet) Recursion added in v1.8.6

func (s *RuleSet) Recursion() bool

func (*RuleSet) RefreshRecords

func (s *RuleSet) RefreshRecords()

func (*RuleSet) ShouldHandle added in v1.6.0

func (s *RuleSet) ShouldHandle(ip net.IP, port int, zone, network string) bool

type Server

type Server struct {
	model.Domain
	DomainName string
	// contains filtered or unexported fields
}

func NewServer

func NewServer(config *model.Domain, domain string) (*Server, error)

func (*Server) Close added in v1.2.0

func (s *Server) Close() error

func (*Server) Header

func (s *Server) Header(r *model.Record) dns.RR_Header

func (*Server) MatchHandler added in v1.2.0

func (s *Server) MatchHandler(w dns.ResponseWriter) *RuleSet

Jump to

Keyboard shortcuts

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