github.com/Asutorufa/yuhaiin@v0.3.6-0.20240502055049-7984da7023a0/pkg/protos/config/dns/dns.proto (about) 1 syntax = "proto3"; 2 3 package yuhaiin.dns; 4 5 option go_package = "github.com/Asutorufa/yuhaiin/pkg/protos/config/dns"; 6 7 enum type { 8 reserve = 0; 9 udp = 1; 10 tcp = 2; 11 doh = 3; 12 dot = 4; 13 doq = 5; 14 doh3 = 6; 15 } 16 17 message dns { 18 string host = 1 [ json_name = "host" ]; 19 type type = 5 [ json_name = "type" ]; 20 string subnet = 4 [ json_name = "subnet" ]; 21 string tls_servername = 2 [ json_name = "tls_servername" ]; 22 } 23 24 message dns_config { 25 string server = 4 [ json_name = "server" ]; 26 bool fakedns = 5 [ json_name = "fakedns" ]; 27 string fakedns_ip_range = 6 [ json_name = "fakedns_ip_range" ]; 28 string fakedns_ipv6_range = 13 [ json_name = "fakedns_ipv6_range" ]; 29 repeated string fakedns_whitelist = 9 [ json_name = "fakedns_whitelist" ]; 30 bool resolve_remote_domain = 7 [ json_name = "resolve_remote_domain" ]; 31 dns remote = 1 [ json_name = "remote" ]; 32 dns local = 2 [ json_name = "local" ]; 33 dns bootstrap = 3 [ json_name = "bootstrap" ]; 34 map<string, string> hosts = 8 [ json_name = "hosts" ]; 35 36 map<string, dns> resolver = 10 [ json_name = "resolver" ]; 37 }