Add dns-zone-add and dns-zone-delete

This commit is contained in:
2025-08-06 23:53:08 +02:00
parent 15ad2c5ab7
commit d0c42d0558
9 changed files with 457 additions and 33 deletions

View File

@@ -0,0 +1,11 @@
zone "%ZONE%" {
type master;
file "%ZONE_FILE%";
update-policy {
grant dns-manager-key zonesub any;
};
allow-transfer {
key dns-manager-key;
};
};

10
templates/zone.template Normal file
View File

@@ -0,0 +1,10 @@
$TTL 86400 ; 1 day
@ IN SOA dns1.%ZONE%. hostmaster.%ZONE%. (
1 ; serial
10800 ; refresh (3 hours)
3600 ; retry (1 hour)
604800 ; expire (1 week)
3600 ; minimum (1 hour)
)
NS dns1.%ZONE%.
NS dns2.%ZONE%.