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