This commit is contained in:
Mateusz Gruszczyński committed 2026-11-22 14:21:54 +01:00
commit fa432bebda
189 files changed
+26219

No files matched your search

+78
View File
@@ -0,0 +1,78 @@
# 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)
# Zone definitions can live in separate files (like BIND `include`):
include: ["zones.d/*.yaml"]
server:
mode: hybrid
listen: ["127.0.0.1:5353", "[::1]:5353"]
udp: true
tcp: true
data_dir: ../data # secondary snapshots, IXFR journals, audit log
max_udp_payload: 1232
logging:
level: info # error | warn | info | debug | trace
format: text # text | json
query_log: false # per-query logs are off by default (privacy)
anonymize_clients: true
# TSIG keys are optional. Zone transfers below are authorised by IP address only.
# To also require a key, uncomment and add `transfer_tsig_key: xfr-key` to the zone:
# keys:
# - name: xfr-key
# algorithm: hmac-sha256
# secret: "env:DNS_TSIG_XFR" # generate: head -c 32 /dev/urandom | base64
acls:
lan: ["192.168.0.0/16", "10.0.0.0/8"]
recursion:
enabled: true
root_hints: root.hints
allowed_clients: ["127.0.0.0/8", "::1/128", "acl:lan"]
qname_minimization: true
dnssec_validation: false
zones:
- name: example.com
type: primary
file: ../zones/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
forward_zones:
- domain: corp.internal
upstreams: ["192.168.1.1:53", "192.168.1.2:53"]
strategy: failover
upstreams:
strategy: fastest
servers: ["1.1.1.1:53", "9.9.9.9:53"]
resolution:
default: recursive # recursive | forward | forwardthenrecursive | refuse
cache:
enabled: true
max_entries: 100000
rate_limit:
enabled: true
per_client_qps: 200
burst: 400
api:
enabled: true
listen: "127.0.0.1:9953"
auth_required: true
tokens:
- { name: admin, role: admin, token: "env:EASYDNS_ADMIN_TOKEN" }
metrics:
enabled: true
listen: "127.0.0.1:9090"