v0.1.2
This commit is contained in:
1 parent
6e57b9e1b8
commit
7b8c7e93fb
48 files changed
+1010
-116
No files matched your search
+7
-1
@@ -15,7 +15,7 @@ server:
|
||||
listen: ["0.0.0.0:53", "[::1]:53"]
|
||||
udp: true
|
||||
tcp: true
|
||||
data_dir: /etc/easydns/data # zone files in data/zones/, secondary copies, journals
|
||||
data_dir: /etc/easydns/data # zones/primary/ (yours), zones/secondary/, zones/signed/, journals
|
||||
max_udp_payload: 1232
|
||||
|
||||
logging:
|
||||
@@ -35,6 +35,12 @@ recursion:
|
||||
|
||||
resolution:
|
||||
default: recursive # recursive | forward | forwardthenrecursive | refuse
|
||||
|
||||
# Local names from /etc/hosts answered first (like dnsmasq), see docs/hosts.md:
|
||||
# hosts:
|
||||
# files: ["/etc/hosts"]
|
||||
# domain: lan # also answer "nas" as "nas.lan"
|
||||
|
||||
# Encrypted forwarding instead of recursion (DNS-over-TLS to public resolvers):
|
||||
# resolution: { default: forward }
|
||||
# upstreams:
|
||||
|
||||
+5
-4
@@ -1,5 +1,6 @@
|
||||
# EasyDNS example configuration (hybrid node). All addresses are documentation/test ranges.
|
||||
# Validate with: easydns check-config -c config/hybrid.yaml (or: econf check config/hybrid.yaml)
|
||||
# Install as /etc/easydns/config.yaml, copy the sample zones (zones/primary/*.zone in the
|
||||
# repository) to /etc/easydns/data/zones/primary/ and validate: easydns check-config
|
||||
# Zone definitions can live in separate files (like BIND `include`):
|
||||
include: ["zones.d/*.yaml"]
|
||||
|
||||
@@ -8,7 +9,7 @@ server:
|
||||
listen: ["127.0.0.1:5353", "[::1]:5353"]
|
||||
udp: true
|
||||
tcp: true
|
||||
data_dir: ../data # secondary snapshots, IXFR journals, audit log
|
||||
data_dir: /etc/easydns/data # zones/primary|secondary|signed, journals, audit log
|
||||
max_udp_payload: 1232
|
||||
|
||||
logging:
|
||||
@@ -37,13 +38,13 @@ recursion:
|
||||
zones:
|
||||
- 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: ["127.0.0.1/32"] # secondaries allowed to AXFR/IXFR (IP only)
|
||||
# transfer_tsig_key: xfr-key # optional: also require a TSIG key
|
||||
notify: [] # e.g. ["192.168.1.20:53"]
|
||||
- name: 2.0.192.in-addr.arpa
|
||||
type: primary
|
||||
file: ../zones/2.0.192.in-addr.arpa.zone # relative to data_dir
|
||||
file: zones/primary/2.0.192.in-addr.arpa.zone
|
||||
|
||||
forward_zones:
|
||||
- domain: corp.internal
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ server: { mode: primary, listen: ["0.0.0.0:53", "[::]:53"], data_dir: /etc/easyd
|
||||
zones:
|
||||
- name: example.com
|
||||
type: primary
|
||||
file: zones/example.com.zone # = /etc/easydns/data/zones/example.com.zone
|
||||
file: zones/primary/example.com.zone # = /etc/easydns/data/zones/primary/example.com.zone
|
||||
transfer_acl: ["192.168.1.20/32"] # secondaries allowed to AXFR/IXFR
|
||||
notify: ["192.168.1.20:53"] # send NOTIFY after every change
|
||||
resolution: { default: refuse }
|
||||
|
||||
@@ -1,4 +1,11 @@
|
||||
Zone definitions included by `config/config.yaml` (`include: ["zones.d/*.yaml"]`).
|
||||
One file per zone or per customer; files are read in alphabetical order, hidden files
|
||||
and `*~` backups are ignored. Relative `file:` paths are resolved against the directory
|
||||
of the main configuration file.
|
||||
Zone definitions included by `config/config.yaml` (`include: ["zones.d/*.yaml"]`), installed
|
||||
as `/etc/easydns/zones.d/`. One file per zone, named after the zone (`example.com.yaml` –
|
||||
`easydns zone create` writes exactly that); files are read in alphabetical order, hidden
|
||||
files and `*~` backups are ignored.
|
||||
|
||||
Relative `file:` paths are resolved against `server.data_dir`:
|
||||
|
||||
| Zone type | Zone file |
|
||||
|---|---|
|
||||
| primary | `file: zones/primary/example.com.zone` → `/etc/easydns/data/zones/primary/example.com.zone` (you edit it; DDNS/API write it too) |
|
||||
| secondary | no `file:` needed – the copy is kept in `/etc/easydns/data/zones/secondary/example.com.zone` |
|
||||
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user