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 IsEDNSClientSubnet(o *dns.OPT) *dns.EDNS0_SUBNET
- func IsIPMatchList(ip net.IP, ipnl []*net.IPNet, isLog bool, name string) bool
- func SetEDNSClientSubnet(m *dns.Msg, ip string, isNoCookie bool)
- type DNSUpstream
- type EDNSClientSubnetType
Constants ¶
This section is empty.
Variables ¶
View Source
var ReservedIPNetworkList []*net.IPNet
Functions ¶
func GetEDNSClientSubnetIP ¶
func HasSubDomain ¶
func IsEDNSClientSubnet ¶
func IsEDNSClientSubnet(o *dns.OPT) *dns.EDNS0_SUBNET
Types ¶
type DNSUpstream ¶
type EDNSClientSubnetType ¶
Click to show internal directories.
Click to hide internal directories.