Documentation
¶
Overview ¶
Package common provides common functions.
Index ¶
- Variables
- func FindRecordByType(msg *dns.Msg, t uint16) string
- func HasAnswer(m *dns.Msg) bool
- func HasSubDomain(s string, sub string) bool
- func IsDomainMatchRule(pattern string, domain string) bool
- func IsIPMatchList(ip net.IP, ipNetList []*net.IPNet, isLog bool, name string) bool
- func SetMinimumTTL(msg *dns.Msg, minimumTTL uint32)
- func SetTTLByMap(msg *dns.Msg, domainTTLMap map[string]uint32)
- type DNSUpstream
- type Filter
Constants ¶
This section is empty.
Variables ¶
View Source
var ReservedIPNetworkList = getReservedIPNetworkList()
Functions ¶
func HasSubDomain ¶
func IsDomainMatchRule ¶
func IsIPMatchList ¶
func SetMinimumTTL ¶
Types ¶
type DNSUpstream ¶
Click to show internal directories.
Click to hide internal directories.