dns.go 209 B

12345678910111213141516
  1. package dns
  2. import (
  3. "net"
  4. "github.com/v2ray/v2ray-core/app"
  5. )
  6. const (
  7. APP_ID = app.ID(2)
  8. )
  9. // A DnsCache is an internal cache of DNS resolutions.
  10. type Server interface {
  11. Get(domain string) []net.IP
  12. }