coreDns域名解析过程简介

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

coreDns域名解析过程简介_第1张图片

 

 

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:

 

coreDns域名解析过程简介_第2张图片

你可能感兴趣的:(微服务,k8s)