summarylogtreecommitdiffstats
path: root/corefile.example
diff options
context:
space:
mode:
authorskydrome2019-08-14 04:31:51 -0400
committerskydrome2019-08-14 04:31:51 -0400
commite470a883dd27541872ca896b77c95b835904b59f (patch)
tree9b73a0957f800913ddc68b107f010dcbf5d1fe27 /corefile.example
downloadaur-coredns-git.tar.gz
coredns-git
Diffstat (limited to 'corefile.example')
-rw-r--r--corefile.example33
1 files changed, 33 insertions, 0 deletions
diff --git a/corefile.example b/corefile.example
new file mode 100644
index 000000000000..dd44a145ade9
--- /dev/null
+++ b/corefile.example
@@ -0,0 +1,33 @@
+## https://github.com/coredns/coredns.io/tree/master/content/manual
+
+# Start a server listening on port 1053
+.:1053 {
+
+ # Forward all queries to Google OR Quad9
+ forward . 8.8.8.8 9.9.9.9:53
+ # Forward all requests to 9.9.9.9 using DNS-over-TLS
+ forward . tls://9.9.9.9 {
+ tls_servername dns.quad9.net
+ health_check 5s
+ }
+
+ # Write query/errors logs to stdout
+ log
+ errors
+
+ # Enable caching for all zones, keep a
+ # positive cache size of 5000 and a negative cache size of 2500
+ cache {
+ success 5000
+ denial 2500
+ }
+ # Only cache responses for example.org
+ cache example.org
+}
+
+# Forward all queries about example.org to a server from an environment variable
+# or servers from a file
+example.org {
+ forward . {$DNS_SERVER} /etc/resolv.conf
+ log
+}