https://coredns.io/manual/toc/#query-is-processed
Each Server Block specifies a number of plugins that should be chained for this specific Server. In its most simple form, you can add a Plugin by just using its name in a Server Block
We can combine all this and have the following Corefile, which sets up 4 zones serving on two different ports:
coredns.io:5300 {
file db.coredns.io
}
example.io:53 {
log
errors
file db.example.io
}
example.net:53 {
file db.example.net
}
.:53 {
kubernetes
forward . 8.8.8.8
log
errors
cache
}
When parsed by CoreDNS, this will result in the following setup: