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

+6 -6
View File
@@ -1,7 +1,7 @@
# Primary (master)
A primary serves zones from zone files (BIND format) stored in
`/etc/easydns/data/zones/`, sends NOTIFY to its secondaries, serves AXFR/IXFR and accepts
`/etc/easydns/data/zones/primary/`, sends NOTIFY to its secondaries, serves AXFR/IXFR and accepts
RFC 2136 dynamic updates when allowed.
## Quick start
@@ -10,7 +10,7 @@ RFC 2136 dynamic updates when allowed.
easydns zone create example.com --ns ns1.example.com=192.0.2.10 --ns ns2.example.net \
--ip 192.0.2.80 --allow-transfer 198.51.100.20 --notify 198.51.100.20 --reload
```
This writes `/etc/easydns/data/zones/example.com.zone` and
This writes `/etc/easydns/data/zones/primary/example.com.zone` and
`/etc/easydns/zones.d/example.com.yaml` (see [cli-tools.md](cli-tools.md#creating-a-zone)).
## Zone definition
@@ -19,7 +19,7 @@ This writes `/etc/easydns/data/zones/example.com.zone` and
zones:
- name: example.com
type: primary
file: zones/example.com.zone # relative to data_dir → /etc/easydns/data/zones/example.com.zone
file: zones/primary/example.com.zone # relative to data_dir → /etc/easydns/data/zones/primary/example.com.zone
transfer_acl: ["198.51.100.20/32"] # secondaries allowed to AXFR/IXFR (default: nobody)
notify: ["198.51.100.20:53"] # NOTIFY after every change
serial_strategy: increment # increment | unixtime | date (YYYYMMDDnn)
@@ -71,7 +71,7 @@ Every accepted and refused update is written to the audit log
```yaml
- name: example.com
type: primary
file: zones/example.com.zone
file: zones/primary/example.com.zone
update_acl: ["198.51.100.50", "203.0.113.2"] # these hosts may change any record
```
```bash
@@ -93,7 +93,7 @@ Internet. `easydns check-config` refuses `update_acl: [any]` without a key.
```yaml
- name: example.com
type: primary
file: zones/example.com.zone
file: zones/primary/example.com.zone
update_keys: [ddns-key]
update_acl: ["192.168.1.0/24"] # optional extra restriction
```
@@ -149,7 +149,7 @@ EasyDNS – `/etc/easydns/zones.d/example.com.yaml`:
```yaml
- name: example.com
type: primary
file: zones/example.com.zone # copy of /etc/bind/example.com.conf into /etc/easydns/data/zones/
file: zones/primary/example.com.zone # copy of /etc/bind/example.com.conf into /etc/easydns/data/zones/primary/
transfer_acl: ["198.51.100.10", "198.51.100.11", "203.0.113.20", "127.0.0.1"]
notify: ["198.51.100.11:53", "203.0.113.20:53"] # notify yes + also-notify
update_policy: