mirror of
https://github.com/basnijholt/compose-farm.git
synced 2026-02-03 06:03:25 +00:00
* examples: Add CoreDNS for *.local domain resolution Adds a CoreDNS example that resolves *.local to the Traefik host, making the .local routes in all examples work out of the box. Also removes the redundant Multi-Container Stacks section from README since paperless-ngx already demonstrates this pattern. * examples: Add coredns .env file
23 lines
556 B
Plaintext
23 lines
556 B
Plaintext
# CoreDNS configuration for .local domain resolution
|
|
#
|
|
# Resolves *.local to the Traefik host IP (where your reverse proxy runs).
|
|
# All other queries are forwarded to upstream DNS.
|
|
|
|
# Handle .local domains - resolve everything to Traefik's host
|
|
local {
|
|
template IN A {
|
|
answer "{{ .Name }} 60 IN A 192.168.1.10"
|
|
}
|
|
template IN AAAA {
|
|
# Return empty for AAAA to avoid delays on IPv4-only networks
|
|
rcode NOERROR
|
|
}
|
|
}
|
|
|
|
# Forward everything else to upstream DNS
|
|
. {
|
|
forward . 1.1.1.1 8.8.8.8
|
|
cache 300
|
|
errors
|
|
}
|