This commit is contained in:
Mateusz Gruszczyński committed 2026-11-23 09:31:05 +01:00
1 parent 6e57b9e1b8
commit 7b8c7e93fb
48 files changed
+1010 -116

No files matched your search

+1 -1
View File
@@ -225,7 +225,7 @@ pub async fn zone_create(State(st): St, Extension(c): Extension<Caller>, Json(b)
if let Err(e) = dns_authoritative::Zone::from_records(&name, records) {
return error(StatusCode::UNPROCESSABLE_ENTITY, &e.to_string());
}
let file = rt.cfg.data_dir().join("zones").join(format!("{}zone", name.to_ascii()));
let file = rt.cfg.data_dir().join("zones").join("primary").join(format!("{}zone", name.to_ascii()));
if let Err(e) = dns_core::zonefile::atomic_write(&file, text.as_bytes()) {
return error(StatusCode::INTERNAL_SERVER_ERROR, &e.to_string());
}