add ttl to ZoneData

This commit is contained in:
Luna Yao
2026-03-31 23:11:56 +02:00
parent 09ba9a1203
commit 56f430bf10
6 changed files with 29 additions and 25 deletions
+3 -2
View File
@@ -7,8 +7,9 @@ package dns;
message ZoneData {
common.UUID id = 1;
string origin = 2;
repeated string records = 3;
repeated common.Url forwarders = 4;
uint32 ttl = 3;
repeated string records = 4;
repeated common.Url forwarders = 5;
}
message GetExportConfigRequest {}
+2
View File
@@ -30,6 +30,8 @@ impl Display for ZoneData {
}
writeln!(f)?;
writeln!(f, "$TTL {}", self.ttl)?;
for record in &self.records {
writeln!(f, "{}", record)?;
}