diff --git a/content/zh-cn/docs/tasks/administer-cluster/dns-debugging-resolution.md b/content/zh-cn/docs/tasks/administer-cluster/dns-debugging-resolution.md index dd480adb414..31aa6068cb3 100644 --- a/content/zh-cn/docs/tasks/administer-cluster/dns-debugging-resolution.md +++ b/content/zh-cn/docs/tasks/administer-cluster/dns-debugging-resolution.md @@ -4,6 +4,15 @@ content_type: task min-kubernetes-server-version: v1.6 weight: 170 --- + 这篇文章提供了一些关于 DNS 问题诊断的方法。 - - ## {{% heading "prerequisites" %}} {{< include "task-tutorial-prereqs.md" >}} @@ -28,6 +35,8 @@ kube-dns. {{< version-check >}} + + -### 创建一个简单的 Pod 作为测试环境 +### 创建一个简单的 Pod 作为测试环境 {#create-a-simple-pod-to-use-as-a-test-environment} {{< codenew file="admin/dns/dnsutils.yaml" >}} @@ -117,7 +117,7 @@ Take a look inside the resolv.conf file. (See [Customizing DNS Service](/docs/tasks/administer-cluster/dns-custom-nameservers) and [Known issues](#known-issues) below for more information) --> -### 先检查本地的 DNS 配置 +### 先检查本地的 DNS 配置 {#check-the-local-dns-configuration-first} 查看 resolv.conf 文件的内容 (阅读[定制 DNS 服务](/zh-cn/docs/tasks/administer-cluster/dns-custom-nameservers/) 和 @@ -405,7 +405,7 @@ term_id="endpoint" >}} related resources to properly resolve service names. Sample error message: --> -### CoreDNS 是否有足够的权限? +### CoreDNS 是否有足够的权限? {#does-coredns-have-sufficient-permissions} CoreDNS 必须能够列出 {{< glossary_tooltip text="service" term_id="service" >}} 和 {{< glossary_tooltip text="endpoint" term_id="endpoint" >}} 相关的资源来正确解析服务名称。 @@ -476,7 +476,7 @@ the namespace of the service. This query is limited to the pod's namespace: --> -### 你的服务在正确的名字空间中吗? +### 你的服务在正确的名字空间中吗? {#are-you-in-the-right-namespace-for-the-service} 未指定名字空间的 DNS 查询仅作用于 Pod 所在的名字空间。