From 6afbfc87156d0799c07ce9e7e71e8528e0964b5c Mon Sep 17 00:00:00 2001 From: eichehome Date: Fri, 18 Feb 2022 22:45:18 +0100 Subject: [PATCH] Erste Version der CoreDNS Konfiguration --- CoreDNS/Corefile | 53 ++++++++++++++++++++++++++++++++++++++++++++++ CoreDNS/plugin.cfg | 1 + 2 files changed, 54 insertions(+) create mode 100644 CoreDNS/Corefile create mode 100644 CoreDNS/plugin.cfg diff --git a/CoreDNS/Corefile b/CoreDNS/Corefile new file mode 100644 index 0000000..401a03e --- /dev/null +++ b/CoreDNS/Corefile @@ -0,0 +1,53 @@ +tls +sign +file/root +loadbalance +forward +bind +loop + +dns://.:53 { + bind eth0 + loadbalance round_robin + forward . 127.0.0.1:5051 127.0.0.1:5052 +} + +127.0.0.1:5051 { + forward . tls://8.8.8.8 tls://8.8.4.4 { + tls_servername dns.google + } +} + +127.0.0.1:5052 { + forward . 1.1.1.1 1.0.0.1 { + tls_servername cloudflare-dns.com + } +} + + + +tls://.:853 { + tls cert.pem key.pem ca.pem +} + +https://.:443 { + tls cert.pem key.pem ca.pem +} + +. { + bind eth0 + loop + loadbalance round_robin + forward . 8.8.8.8 9.9.9.9 + forward . tls://9.9.9.9 { + tls_servername dns.quad9.net + health_check 5s + } + cache 30 + hosts { + 10.0.0.1 example.org + falltrough + } + hosts + hosts /etc/hosts example.org +} \ No newline at end of file diff --git a/CoreDNS/plugin.cfg b/CoreDNS/plugin.cfg new file mode 100644 index 0000000..39e9bf7 --- /dev/null +++ b/CoreDNS/plugin.cfg @@ -0,0 +1 @@ +unbound:github.com/coredns/unbound \ No newline at end of file