v0.1.2
This commit is contained in:
1 parent
6e57b9e1b8
commit
7b8c7e93fb
48 files changed
+1010
-116
No files matched your search
+15
-4
@@ -35,7 +35,7 @@ easydig @127.0.0.1 example.com SOA +short
|
||||
```
|
||||
The package installs the default hybrid configuration (`/etc/easydns/config.yaml`:
|
||||
`0.0.0.0:53` + `[::1]:53`, recursion for `192.168.0.0/16`, `10.0.0.0/8`, `127.0.0.1`),
|
||||
creates `/etc/easydns/{zones.d,keys.d,data/zones}` and the `easydns` user. Layout:
|
||||
creates `/etc/easydns/{zones.d,keys.d,data/zones/primary,data/zones/secondary}` and the `easydns` user. Layout:
|
||||
[configuration.md](configuration.md#default-installation-layout). Example configurations
|
||||
are in `/usr/share/doc/easydns/examples/`.
|
||||
|
||||
@@ -72,8 +72,19 @@ sudo apt update && sudo apt install -o Dpkg::Options::=--force-confold easydns
|
||||
* A running server is restarted only if the new version accepts the configuration
|
||||
(`easydns check-config` as the `easydns` user); otherwise the old version keeps
|
||||
running and the reason is in `/tmp/easydns-upgrade-check.log`.
|
||||
* Secondary zone copies from older versions (`data/secondary/`) are moved automatically
|
||||
to `data/zones/secondary/` on the first start, so zones are served immediately.
|
||||
* Files the server keeps are moved automatically on the first start: secondary copies
|
||||
`data/secondary/` → `data/zones/secondary/` (0.1.1) and signed zones `data/signed/` →
|
||||
`data/zones/signed/` (0.1.2), so zones are served at once and signatures are reused.
|
||||
* Your own primary zone files are **not** moved: `file:` in `zones.d/` points at them and
|
||||
keeps working. To adopt the 0.1.2 layout (`data/zones/primary/`), move them and fix the
|
||||
paths, then reload:
|
||||
```bash
|
||||
sudo -u easydns sh -c 'cd /etc/easydns/data/zones && mkdir -p primary && mv -- *.zone primary/'
|
||||
sudo sed -i 's|file: zones/\([^/ ]*\.zone\)|file: zones/primary/\1|' /etc/easydns/zones.d/*.yaml /etc/easydns/config.yaml
|
||||
sudo easydns check-config && sudo easydns reload
|
||||
```
|
||||
Zones created through the API keep their absolute path in `data/api-overlay.yaml`; new
|
||||
ones go to `zones/primary/`.
|
||||
* After the upgrade: `sudo easydns check-config`, `journalctl -u easydns -n 50`, and
|
||||
query a few zones (`easydig @127.0.0.1 example.com SOA +short`).
|
||||
|
||||
@@ -83,7 +94,7 @@ sudo apt update && sudo apt install -o Dpkg::Options::=--force-confold easydns
|
||||
sudo useradd --system --home /etc/easydns/data --shell /usr/sbin/nologin easydns
|
||||
sudo deploy/install.sh /usr # binaries (+ short tool names when free)
|
||||
sudo install -d -o root -g easydns -m 0750 /etc/easydns /etc/easydns/zones.d /etc/easydns/keys.d
|
||||
sudo install -d -o easydns -g easydns -m 0750 /etc/easydns/data /etc/easydns/data/zones
|
||||
sudo install -d -o easydns -g easydns -m 0750 /etc/easydns/data /etc/easydns/data/zones /etc/easydns/data/zones/primary
|
||||
sudo install -m 0640 -g easydns config/config.yaml /etc/easydns/config.yaml # or config/primary.yaml, secondary.yaml, …
|
||||
sudo cp deploy/systemd/easydns.service /etc/systemd/system/
|
||||
sudo systemctl daemon-reload && sudo systemctl enable --now easydns
|
||||
|
||||
Reference in new issue
Block a user