An example

This commit is contained in:
Miek Gieben
2016-03-18 21:36:42 +00:00
parent f5f6ee832d
commit 9112c58edb
2 changed files with 16 additions and 6 deletions

View File

@@ -9,3 +9,19 @@ here](https://miek.nl/tags/coredns/).
<https://caddyserver.com/> 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.