From 9112c58edb0fe1f1f2be4e62ea5011c372cdf1d5 Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Fri, 18 Mar 2016 21:36:42 +0000 Subject: [PATCH] An example --- Corefile | 6 ------ README.md | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/Corefile b/Corefile index 97a631950..6b797b831 100644 --- a/Corefile +++ b/Corefile @@ -1,9 +1,3 @@ .:1053 { - file db.miek.nl miek.nl proxy . 8.8.8.8:53 } - -dns.miek.nl:1053 { - file db.dns.miek.nl - reflect -} diff --git a/README.md b/README.md index 954500f6e..2e430aee5 100644 --- a/README.md +++ b/README.md @@ -9,3 +9,19 @@ here](https://miek.nl/tags/coredns/). is also full of examples on how to structure a Corefile (renamed from Caddyfile when I forked it). + +# Resolver + +Start a simple resolver (proxy): + +`Corefile` contains: + +~~~ +.:1053 { + proxy . 8.8.8.8:53 +} +~~~ + +Just start CoreDNS: `./coredns`. +And then just query on that port (1053), the query should be forwarded to 8.8.8.8 and the response +will be returned.