github.com/xraypb/xray-core@v1.6.6/features/dns/fakedns.go (about) 1 package dns 2 3 import ( 4 "github.com/xraypb/xray-core/common/net" 5 "github.com/xraypb/xray-core/features" 6 ) 7 8 type FakeDNSEngine interface { 9 features.Feature 10 GetFakeIPForDomain(domain string) []net.Address 11 GetDomainFromFakeDNS(ip net.Address) string 12 } 13 14 var ( 15 FakeIPv4Pool = "198.18.0.0/15" 16 FakeIPv6Pool = "fc00::/18" 17 ) 18 19 type FakeDNSEngineRev0 interface { 20 FakeDNSEngine 21 IsIPInIPPool(ip net.Address) bool 22 GetFakeIPForDomain3(domain string, IPv4, IPv6 bool) []net.Address 23 }