v0.1.2
This commit is contained in:
1 parent
6e57b9e1b8
commit
7b8c7e93fb
48 files changed
+1010
-116
No files matched your search
+22
-6
@@ -15,11 +15,15 @@ Validate offline: `easydns check-config -c config.yaml` or `econf check config.y
|
||||
| `/etc/easydns/zones.d/*.yaml` | zone definitions, one file per zone (`easydns zone create` writes here) | root:easydns 0750 |
|
||||
| `/etc/easydns/keys.d/*.conf` | TSIG keys – BIND `key "…" { … };` files copied unchanged | root:easydns 0640 |
|
||||
| `/etc/easydns/data/` | `server.data_dir`: everything the server writes | easydns:easydns 0750 |
|
||||
| `/etc/easydns/data/zones/` | zone files of primary zones (`file: zones/example.com.zone`) | easydns |
|
||||
| `/etc/easydns/data/zones/secondary/` | copies of secondary zones (+ `.meta.json`) | easydns |
|
||||
| `/etc/easydns/data/zones/primary/` | **your** primary zone files (`file: zones/primary/example.com.zone`); `zone create`, the API and DDNS write here too – back them up | easydns |
|
||||
| `/etc/easydns/data/zones/secondary/` | copies of secondary zones (+ `.meta.json`) – recreated by a transfer | easydns |
|
||||
| `/etc/easydns/data/zones/signed/` | signed versions of DNSSEC zones – recreated by signing | easydns |
|
||||
| `/etc/easydns/data/journal/` | IXFR journals | easydns |
|
||||
| `/etc/easydns/data/control.token` | local admin token for the CLI | easydns 0640 |
|
||||
| `/etc/easydns/data/audit.log`, `api-overlay.yaml`, `signed/` | audit trail, API changes, signed zones | easydns |
|
||||
| `/etc/easydns/data/audit.log`, `api-overlay.yaml`, `blocklists/` | audit trail, API changes, downloaded block lists | easydns |
|
||||
|
||||
In short: `/etc/easydns/` is configuration you write, `data/zones/primary/` is zone data
|
||||
you own, everything else under `data/` is created by the server.
|
||||
|
||||
The default configuration runs a **hybrid** node: authoritative for the zones in
|
||||
`zones.d/`, recursive resolver for `acls.lan` (`192.168.0.0/16`, `10.0.0.0/8`,
|
||||
@@ -28,8 +32,10 @@ The default configuration runs a **hybrid** node: authoritative for the zones in
|
||||
|
||||
## Zone file paths
|
||||
|
||||
A relative zone `file:` is relative to `server.data_dir`: `file: zones/example.com.zone`
|
||||
is `/etc/easydns/data/zones/example.com.zone`. Absolute paths are used as they are.
|
||||
A relative zone `file:` is relative to `server.data_dir`: `file: zones/primary/example.com.zone`
|
||||
is `/etc/easydns/data/zones/primary/example.com.zone`. Absolute paths are used as they are,
|
||||
and any other relative path works too – `zones/primary/` is the convention used by
|
||||
`easydns zone create`, the API and the examples, not a requirement.
|
||||
(Older configurations whose relative paths point next to the config file keep working:
|
||||
if the file is not found under `data_dir` but exists relative to the configuration
|
||||
directory, that one is used.)
|
||||
@@ -144,7 +150,7 @@ recursion:
|
||||
zones: # see primary.md / secondary.md
|
||||
- name: example.com
|
||||
type: primary
|
||||
file: zones/example.com.zone # relative to data_dir
|
||||
file: zones/primary/example.com.zone # relative to data_dir
|
||||
transfer_acl: [] # IPs allowed to AXFR/IXFR
|
||||
transfer_tsig_key: null # optional key for transfers
|
||||
notify: [] # secondaries to NOTIFY
|
||||
@@ -165,6 +171,7 @@ cache: { enabled: true, max_entries: 100000, min_ttl: 0, max_ttl: 86400, max_neg
|
||||
prefetch: true } # refresh popular resolver entries before they expire
|
||||
policy: { blocklists: [ { name, file|url, category, enabled } ], allowlist: [], block_action: nxdomain|refused|null|address,
|
||||
block_address_v4: 0.0.0.0, block_address_v6: "::", block_ttl: 60, exempt_clients: [], log_blocked: true }
|
||||
hosts: { files: [], ttl: 0, domain: null, reload_interval: 5s } # /etc/hosts-format files answered first (dnsmasq style), see hosts.md
|
||||
rate_limit: { enabled: true, per_client_qps: 200, burst: 400, global_qps: 0, slip: 2, exempt_clients: [loopback] } # global_qps 0 = no server-wide cap
|
||||
tls: { cert_file, key_file, dot_listen: [], doh_listen: [], doh_plaintext_behind_proxy: false } # certificate files re-read within 60 s of a change
|
||||
api: { enabled: true, listen: 127.0.0.1:9953, auth_required: true, local_token: true, tokens: [], allowed_clients: [loopback], requests_per_minute: 600 }
|
||||
@@ -190,6 +197,15 @@ hits are answered directly in the receive loop (batched with `sendmmsg` on Linux
|
||||
* Memory: about 0.3–1 KiB per entry (20 000 entries ≈ 6–20 MB at most).
|
||||
* Metrics: `dns_answer_cache_hits_total`, `…_misses_total`, `…_inserts_total`, `dns_answer_cache_entries`.
|
||||
|
||||
### Hosts files (`hosts`)
|
||||
|
||||
`hosts.files: ["/etc/hosts"]` answers the names in those files (A, AAAA and PTR) before
|
||||
local zones, block lists, forwarding and recursion – the dnsmasq behaviour. A name that
|
||||
is in the files but lacks the asked type gets NODATA and is not forwarded. Only clients
|
||||
in `recursion.allowed_clients` get these answers. `domain: lan` also answers bare names
|
||||
as `<name>.lan`; files are re-read automatically every `reload_interval` when they
|
||||
change. Details and a dnsmasq translation table: [hosts.md](hosts.md).
|
||||
|
||||
## Upstream syntax
|
||||
|
||||
`1.1.1.1`, `1.1.1.1:53`, `[2606:4700::1111]:53`, `tcp://1.1.1.1`,
|
||||
|
||||
Reference in new issue
Block a user