-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCorefile.template
More file actions
34 lines (31 loc) · 1.33 KB
/
Corefile.template
File metadata and controls
34 lines (31 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# =============================================================================
# CoreDNS configuration — generated by AI Stack dns entrypoint
#
# ${DOMAIN} → ${HOST_IP} (wildcard zone, Traefik routes by Host() header)
# Container names → per-container IP (populated by dns-watcher via hosts file)
# Everything else → forwarded to ${DNS_UPSTREAM}
# =============================================================================
# ── Domain zone ─────────────────────────────────────────────────────────────
# Serves the static zone file (wildcard *.domain → HOST_IP) and the
# dynamically-updated hosts file (container name → container IP).
${DOMAIN}:53 {
file /etc/coredns/zones/db.${DOMAIN} {
reload ${ZONE_RELOAD}
}
hosts /etc/coredns/hosts {
reload ${HOSTS_RELOAD}
fallthrough
}
${DNS_DOMAIN_FORWARD}
errors
log
}
# ── Catch-all zone ──────────────────────────────────────────────────────────
# Forwards all other queries to the upstream resolver.
.:53 {
forward . ${DNS_UPSTREAM}
cache 300
errors
log
}
${ACME_DNS_BLOCK}