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

+70
View File
@@ -0,0 +1,70 @@
# EasyDNS – default configuration, installed as /etc/easydns/config.yaml.
#
# Hybrid node: authoritative for your own zones + recursive resolver for the LAN.
# check: easydns check-config
# new zone: easydns zone create example.com --ns ns1.example.com --ip 192.0.2.1
# reload: easydns reload (or: systemctl reload easydns)
# status: easydns status (no API key needed – see api.local_token)
# Zone definitions (one file per zone) and TSIG keys (BIND `key "..." { ... };` files can
# be copied here unchanged).
include: ["zones.d/*.yaml", "keys.d/*.conf"]
server:
mode: hybrid
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
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
acls:
lan: ["192.168.0.0/16", "10.0.0.0/8", "127.0.0.1/32"] # add 172.16.0.0/12 if you use it
recursion:
enabled: true
allowed_clients: ["acl:lan", "::1/128"] # never make this "any" (open resolver)
qname_minimization: true
dnssec_validation: true
resolution:
default: recursive # recursive | forward | forwardthenrecursive | refuse
# Encrypted forwarding instead of recursion (DNS-over-TLS to public resolvers):
# resolution: { default: forward }
# upstreams:
# strategy: fastest
# servers: ["tls://1.1.1.1:853#cloudflare-dns.com", "tls://9.9.9.9:853#dns.quad9.net"]
# DNS-over-TLS (853) and DNS-over-HTTPS (443, HTTP/2 and HTTP/1.1) for your clients:
# tls:
# cert_file: /etc/letsencrypt/live/dns.example.com/fullchain.pem
# key_file: /etc/letsencrypt/live/dns.example.com/privkey.pem
# dot_listen: ["0.0.0.0:853"]
# doh_listen: ["0.0.0.0:443"]
cache:
enabled: true
max_entries: 100000
rate_limit:
enabled: true
per_client_qps: 200
burst: 400
exempt_clients: ["acl:lan"]
api:
enabled: true
listen: "127.0.0.1:9953" # loopback only, non-standard port
local_token: true # CLI works out of the box (token in data_dir, mode 0640)
# tokens: # extra tokens for remote tools / automation
# - { name: admin, role: admin, token: "file:/etc/easydns/api.token" }
metrics:
enabled: true
listen: "127.0.0.1:9090"