Skip to content

Commit 9aea1a3

Browse files
committed
[zh] update dns-pod-server.md
Signed-off-by: song <[email protected]>
1 parent fd9e0ac commit 9aea1a3

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

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

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -571,10 +571,7 @@ a list of search domains of up to 2048 characters.
571571

572572
<!--
573573
## DNS resolution on Windows nodes {#dns-windows}
574-
-->
575-
## Windows 节点上的 DNS 解析 {#dns-windows}
576574
577-
<!--
578575
- ClusterFirstWithHostNet is not supported for pods that run on Windows nodes.
579576
Windows treats all names with a `.` as a FQDN and skips FQDN resolution.
580577
- On Windows, there are multiple DNS resolvers that can be used. As these come with
@@ -591,19 +588,21 @@ a list of search domains of up to 2048 characters.
591588
and `kubernetes`, but not the partially qualified names (`kubernetes.default` or
592589
`kubernetes.default.svc`).
593590
-->
591+
## Windows 节点上的 DNS 解析 {#dns-windows}
592+
594593
- 在 Windows 节点上运行的 Pod 不支持 ClusterFirstWithHostNet。
595-
Windows 将所有带有 `.` 的名字视为 FQDN 并跳过 FQDN 解析。
596-
- 在 Windows 上,可以使用多个 DNS 解析器。由于这些解析器的行为上略有不同,建议使用
594+
Windows 将所有带有 `.` 的名称视为全限定域名(FQDN)并跳过全限定域名(FQDN)解析。
595+
- 在 Windows 上,可以使用的 DNS 解析器有很多。
596+
由于这些解析器彼此之间会有轻微的行为差别,建议使用
597597
[`Resolve-DNSName`](https://docs.microsoft.com/powershell/module/dnsclient/resolve-dnsname)
598-
这个 PowerShell cmdlet 进行名字查询解析。
599-
- 在 Linux 上,你会有一个 DNS 后缀列表,在全限定域名解析失败之后会使用这里的后缀。
600-
在 Windows 上,你只能有 1 个 DNS 后缀,即与 Pod 的命名空间关联的 DNS
601-
后缀(例如:`mydns.svc.cluster.local`)。 Windows 可以解析能够使用此唯一后缀解析的
602-
FQDN、服务与网络名字。
603-
例如,在 `default` 命名空间中产生的某个 Pod 将具有 DNS 后缀 `default.svc.cluster.local`
604-
在 Windows Pod 中,你可以解析 `kubernetes.default.svc.cluster.local`
605-
`kubernetes`,但无法解析部分限定名称(`kubernetes.default`
606-
`kubernetes.default.svc`)。
598+
powershell cmdlet 进行名称查询解析。
599+
- 在 Linux 上,有一个 DNS 后缀列表,当解析全名失败时可以使用。
600+
在 Windows 上,你只能有一个 DNS 后缀,
601+
即与该 Pod 的命名空间相关联的 DNS 后缀(例如:`mydns.svc.cluster.local`)。
602+
Windows 可以解析全限定域名(FQDN),和使用了该 DNS 后缀的服务名称或者网络名称。
603+
例如,在 `default` 命名空间中生成一个 Pod,该 Pod 会获得的 DNS 后缀为 `default.svc.cluster.local`
604+
在 Windows 的 Pod 中,你可以解析 `kubernetes.default.svc.cluster.local``kubernetes`
605+
但是不能解析部分限定名称(`kubernetes.default``kubernetes.default.svc`)。
607606

608607
## {{% heading "whatsnext" %}}
609608

0 commit comments

Comments
 (0)