mirror of
https://github.com/coredns/coredns.git
synced 2025-11-02 02:03:13 -05:00
8f9f2cd1ab66f3a96224d6faead9d4a9a9c8816d
This middleware acts in the same way as SkyDNS. We might add options
to allow it to be behave different, but for now it will suffice.
A Corefile like:
.:1053 {
etcd miek.nl
proxy . 8.8.8.8:53
}
will perform lookup in etcd and proxy everything not miek.nl to Google
for further resolution.
The internal etcd forwarding *also* uses the proxy infrastructure,
meaning you get health check and such for (almost) free
CoreDNS
CoreDNS is DNS server that started as a fork of Caddy. It has the same model: it chains middleware.
It is in the early stages of development and should not be used on production servers yet. For now most documentation is in the source and some blog articles can be found here.
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.
Blog
Description
Languages
Go
99.9%