Skip to content

Commit 8caa18a

Browse files
committed
[zh-cn] Sync administer-cluster/dns-debugging-resolution.md
Signed-off-by: Guangwen Feng <[email protected]>
1 parent 0af73a5 commit 8caa18a

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

content/zh-cn/docs/tasks/administer-cluster/dns-debugging-resolution.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,22 @@ content_type: task
44
min-kubernetes-server-version: v1.6
55
weight: 170
66
---
7+
<!--
8+
reviewers:
9+
- bowei
10+
- zihongz
11+
title: Debugging DNS Resolution
12+
content_type: task
13+
min-kubernetes-server-version: v1.6
14+
weight: 170
15+
-->
716

817
<!-- overview -->
918
<!--
1019
This page provides hints on diagnosing DNS problems.
1120
-->
1221
这篇文章提供了一些关于 DNS 问题诊断的方法。
1322

14-
<!-- steps -->
15-
1623
## {{% heading "prerequisites" %}}
1724

1825
{{< include "task-tutorial-prereqs.md" >}}
@@ -28,6 +35,8 @@ kube-dns.
2835

2936
{{< version-check >}}
3037

38+
<!-- steps -->
39+
3140
<!--
3241
### Create a simple Pod to use as a test environment
3342
@@ -40,17 +49,8 @@ services depends on the namespace of the pod. For more information, review
4049
{{< /note >}}
4150
4251
Use that manifest to create a Pod:
43-
44-
```shell
45-
kubectl create -f https://k8s.io/examples/admin/dns/busybox.yaml
46-
pod/busybox created
47-
48-
kubectl get pods busybox
49-
NAME READY STATUS RESTARTS AGE
50-
busybox 1/1 Running 0 <some-time>
51-
```
5252
-->
53-
### 创建一个简单的 Pod 作为测试环境
53+
### 创建一个简单的 Pod 作为测试环境 {#create-a-simple-pod-to-use-as-a-test-environment}
5454

5555
{{< codenew file="admin/dns/dnsutils.yaml" >}}
5656

@@ -117,7 +117,7 @@ Take a look inside the resolv.conf file.
117117
(See [Customizing DNS Service](/docs/tasks/administer-cluster/dns-custom-nameservers) and
118118
[Known issues](#known-issues) below for more information)
119119
-->
120-
### 先检查本地的 DNS 配置
120+
### 先检查本地的 DNS 配置 {#check-the-local-dns-configuration-first}
121121

122122
查看 resolv.conf 文件的内容
123123
(阅读[定制 DNS 服务](/zh-cn/docs/tasks/administer-cluster/dns-custom-nameservers/)
@@ -405,7 +405,7 @@ term_id="endpoint" >}} related resources to properly resolve service names.
405405
406406
Sample error message:
407407
-->
408-
### CoreDNS 是否有足够的权限?
408+
### CoreDNS 是否有足够的权限? {#does-coredns-have-sufficient-permissions}
409409

410410
CoreDNS 必须能够列出 {{< glossary_tooltip text="service" term_id="service" >}} 和
411411
{{< glossary_tooltip text="endpoint" term_id="endpoint" >}} 相关的资源来正确解析服务名称。
@@ -476,7 +476,7 @@ the namespace of the service.
476476
477477
This query is limited to the pod's namespace:
478478
-->
479-
### 你的服务在正确的名字空间中吗?
479+
### 你的服务在正确的名字空间中吗? {#are-you-in-the-right-namespace-for-the-service}
480480

481481
未指定名字空间的 DNS 查询仅作用于 Pod 所在的名字空间。
482482

0 commit comments

Comments
 (0)