Commit 9112c58e authored by Miek Gieben's avatar Miek Gieben

An example

parent f5f6ee83
.:1053 { .:1053 {
file db.miek.nl miek.nl
proxy . 8.8.8.8:53 proxy . 8.8.8.8:53
} }
dns.miek.nl:1053 {
file db.dns.miek.nl
reflect
}
...@@ -9,3 +9,19 @@ here](https://miek.nl/tags/coredns/). ...@@ -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 <https://caddyserver.com/> is also full of examples on how to structure a Corefile (renamed from
Caddyfile when I forked it). 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.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment