From 59cfde2b8b876c953f9971d81123f0795c879504 Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Fri, 10 Jun 2022 22:30:25 +0900 Subject: [PATCH] do not use resolv.conf --- etc/coredns/Corefile | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/etc/coredns/Corefile b/etc/coredns/Corefile index 6b12cb0..757b9a5 100644 --- a/etc/coredns/Corefile +++ b/etc/coredns/Corefile @@ -1,14 +1,11 @@ -https://dns.keiu.net tls://dns.keiu.net { +https://. tls://. { + tls /var/lib/caddy/data/caddy/certificates/acme.zerossl.com-v2-dv90/dns.keiu.net/dns.keiu.net.crt /var/lib/caddy/data/caddy/certificates/acme.zerossl.com-v2-dv90/dns.keiu.net/dns.keiu.net.key + reload prometheus 0.0.0.0:9153 + hosts { + fallthrough + } forward . tls://1.1.1.1 tls://1.0.0.1 { tls_servername tls.cloudflare-dns.com } } -https://. tls://. { - tls /var/lib/caddy/data/caddy/certificates/acme.zerossl.com-v2-dv90/dns.keiu.net/dns.keiu.net.crt /var/lib/caddy/data/caddy/certificates/acme.zerossl.com-v2-dv90/dns.keiu.net/dns.keiu.net.key - hosts { - fallthrough - } - forward . /etc/resolv.conf - reload -}