add DnsConfig and ZoneConfig with proto definitions

This commit is contained in:
Luna Yao
2026-04-06 11:54:01 +02:00
parent 7abdfd35e8
commit 3f3aec8edd
10 changed files with 319 additions and 15 deletions
+26
View File
@@ -0,0 +1,26 @@
syntax = "proto3";
import "common.proto";
package dns;
enum DnsConfigKind {
LOCAL = 0;
REMOTE = 1;
}
message DnsConfigPb {
DnsConfigKind kind = 1;
repeated ZoneConfigPb zones = 2;
string name = 3;
string domain = 4;
repeated common.SocketAddr addresses = 5;
repeated string listeners = 6;
}
message ZoneConfigPb {
string origin = 1;
uint32 ttl = 2;
repeated string records = 3;
repeated string forwarders = 4;
}