Skip to content

Commit 05e3a57

Browse files
authored
Merge pull request #31470 from 0xff-dev/main
[zh] fix wrong dns record
2 parents 14b5ac9 + b4f52c1 commit 05e3a57

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

content/zh/docs/concepts/services-networking/dns-pod-service.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ are used to expand queries. To learn more about DNS queries, see
8080
[the `resolv.conf` manual page.](https://www.man7.org/linux/man-pages/man5/resolv.conf.5.html)
8181
-->
8282
DNS 查询可以使用 Pod 中的 `/etc/resolv.conf` 展开。kubelet 会为每个 Pod
83-
生成此文件。例如,对 `data` 的查询可能被展开为 `data.test.cluster.local`
83+
生成此文件。例如,对 `data` 的查询可能被展开为 `data.test.svc.cluster.local`
8484
`search` 选项的取值会被用来展开查询。要进一步了解 DNS 查询,可参阅
8585
[`resolv.conf` 手册页面](https://www.man7.org/linux/man-pages/man5/resolv.conf.5.html)
8686

@@ -384,13 +384,13 @@ following pod-specific DNS policies. These policies are specified in the
384384

385385
- "`Default`": The Pod inherits the name resolution configuration from the node
386386
that the pods run on.
387-
See [related discussion](/docs/tasks/administer-cluster/dns-custom-nameservers/#inheriting-dns-from-the-node)
387+
See [related discussion](/docs/tasks/administer-cluster/dns-custom-nameservers)
388388
for more details.
389389
- "`ClusterFirst`": Any DNS query that does not match the configured cluster
390390
domain suffix, such as "`www.kubernetes.io`", is forwarded to the upstream
391391
nameserver inherited from the node. Cluster administrators may have extra
392392
stub-domain and upstream DNS servers configured.
393-
See [related discussion](/docs/tasks/administer-cluster/dns-custom-nameservers/#impacts-on-pods)
393+
See [related discussion](/docs/tasks/administer-cluster/dns-custom-nameservers)
394394
for details on how DNS queries are handled in those cases.
395395
- "`ClusterFirstWithHostNet`": For Pods running with hostNetwork, you should
396396
explicitly set its DNS policy "`ClusterFirstWithHostNet`".
@@ -405,11 +405,11 @@ DNS 策略可以逐个 Pod 来设定。目前 Kubernetes 支持以下特定 Pod
405405
这些策略可以在 Pod 规约中的 `dnsPolicy` 字段设置:
406406

407407
- "`Default`": Pod 从运行所在的节点继承名称解析配置。参考
408-
[相关讨论](/zh/docs/tasks/administer-cluster/dns-custom-nameservers/#inheriting-dns-from-the-node)
408+
[相关讨论](/zh/docs/tasks/administer-cluster/dns-custom-nameservers)
409409
获取更多信息。
410410
- "`ClusterFirst`": 与配置的集群域后缀不匹配的任何 DNS 查询(例如 "www.kubernetes.io")
411411
都将转发到从节点继承的上游名称服务器。集群管理员可能配置了额外的存根域和上游 DNS 服务器。
412-
参阅[相关讨论](/zh/docs/tasks/administer-cluster/dns-custom-nameservers/#impacts-on-pods)
412+
参阅[相关讨论](/zh/docs/tasks/administer-cluster/dns-custom-nameservers)
413413
了解在这些场景中如何处理 DNS 查询的信息。
414414
- "`ClusterFirstWithHostNet`":对于以 hostNetwork 方式运行的 Pod,应显式设置其 DNS 策略
415415
"`ClusterFirstWithHostNet`"

0 commit comments

Comments
 (0)