1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-29 02:35:23 +00:00
v2fly/app/dns/config.proto

56 lines
1.4 KiB
Protocol Buffer
Raw Normal View History

2016-09-20 14:05:35 +00:00
syntax = "proto3";
2016-09-26 13:14:16 +00:00
package v2ray.core.app.dns;
2016-12-22 23:24:28 +00:00
option csharp_namespace = "V2Ray.Core.App.Dns";
2016-09-20 14:05:35 +00:00
option go_package = "dns";
2016-09-26 13:14:16 +00:00
option java_package = "com.v2ray.core.app.dns";
2017-02-03 22:15:10 +00:00
option java_multiple_files = true;
2016-09-20 14:05:35 +00:00
import "v2ray.com/core/common/net/address.proto";
import "v2ray.com/core/common/net/destination.proto";
message NameServer {
v2ray.core.common.net.Endpoint address = 1;
message PriorityDomain {
DomainMatchingType type = 1;
string domain = 2;
}
repeated PriorityDomain prioritized_domain = 2;
}
enum DomainMatchingType {
Full = 0;
Subdomain = 1;
Keyword = 2;
2018-09-19 14:10:42 +00:00
Regex = 3;
}
2016-09-20 14:05:35 +00:00
message Config {
2016-10-18 08:31:39 +00:00
// Nameservers used by this DNS. Only traditional UDP servers are support at the moment.
// A special value 'localhost' as a domain address can be set to use DNS on local system.
repeated v2ray.core.common.net.Endpoint NameServers = 1 [deprecated = true];
// NameServer list used by this DNS client.
repeated NameServer name_server = 5;
2016-10-18 08:31:39 +00:00
// Static hosts. Domain to IP.
// Deprecated. Use static_hosts.
map<string, v2ray.core.common.net.IPOrDomain> Hosts = 2 [deprecated = true];
2018-06-26 15:14:51 +00:00
2018-06-26 21:23:59 +00:00
// Client IP for EDNS client subnet. Must be 4 bytes (IPv4) or 16 bytes (IPv6).
bytes client_ip = 3;
message HostMapping {
DomainMatchingType type = 1;
string domain = 2;
repeated bytes ip = 3;
}
repeated HostMapping static_hosts = 4;
2019-01-16 19:32:41 +00:00
// Tag is the inbound tag of DNS client.
string tag = 6;
2016-09-20 14:05:35 +00:00
}