config.proto 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. syntax = "proto3";
  2. package v2ray.core.app.dns;
  3. option csharp_namespace = "V2Ray.Core.App.Dns";
  4. option go_package = "dns";
  5. option java_package = "com.v2ray.core.app.dns";
  6. option java_multiple_files = true;
  7. import "v2ray.com/core/common/net/address.proto";
  8. import "v2ray.com/core/common/net/destination.proto";
  9. message Config {
  10. // Nameservers used by this DNS. Only traditional UDP servers are support at the moment.
  11. // A special value 'localhost' as a domain address can be set to use DNS on local system.
  12. repeated v2ray.core.common.net.Endpoint NameServers = 1;
  13. // Static hosts. Domain to IP.
  14. // Deprecated. Use static_hosts.
  15. map<string, v2ray.core.common.net.IPOrDomain> Hosts = 2 [deprecated = true];
  16. // Client IP for EDNS client subnet. Must be 4 bytes (IPv4) or 16 bytes (IPv6).
  17. bytes client_ip = 3;
  18. message HostMapping {
  19. enum Type {
  20. Full = 0;
  21. SubDomain = 1;
  22. }
  23. Type type = 1;
  24. string domain = 2;
  25. repeated bytes ip = 3;
  26. }
  27. repeated HostMapping static_hosts = 4;
  28. }