Files
EasyDNS/config/hybrid.yaml
T
2026-11-23 09:31:05 +01:00

80 lines
2.3 KiB
YAML

# EasyDNS example configuration (hybrid node). All addresses are documentation/test ranges.
# 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"]
server:
mode: hybrid
listen: ["127.0.0.1:5353", "[::1]:5353"]
udp: true
tcp: true
data_dir: /etc/easydns/data # zones/primary|secondary|signed, 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/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/primary/2.0.192.in-addr.arpa.zone
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"