github.com/EagleQL/Xray-core@v1.4.3/features/dns/fakedns.go (about)

     1  package dns
     2  
     3  import (
     4  	gonet "net"
     5  
     6  	"github.com/xtls/xray-core/common/net"
     7  	"github.com/xtls/xray-core/features"
     8  )
     9  
    10  type FakeDNSEngine interface {
    11  	features.Feature
    12  	GetFakeIPForDomain(domain string) []net.Address
    13  	GetDomainFromFakeDNS(ip net.Address) string
    14  	GetFakeIPRange() *gonet.IPNet
    15  }
    16  
    17  var FakeIPPool = "198.18.0.0/16"