Skip to content

Commit b38b1f7

Browse files
authored
Merge pull request #44879 from my-git9/patch-15770
[zh-cn] sync services-networking/dns-pod-service.md
2 parents 66eb07d + a13b5a0 commit b38b1f7

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,9 @@ SRV 记录格式为 `_port-name._port-protocol.my-svc.my-namespace.svc.cluster-d
184184
<!--
185185
### A/AAAA records
186186
187-
In general a Pod has the following DNS resolution:
187+
Kube-DNS versions, prior to the implementation of the [DNS specification](https://github.com/kubernetes/dns/blob/master/docs/specification.md), had the following DNS resolution:
188188
189-
`pod-ip-address.my-namespace.pod.cluster-domain.example`.
189+
`pod-ipv4-address.my-namespace.pod.cluster-domain.example`.
190190
191191
For example, if a Pod in the `default` namespace has the IP address 172.17.0.3,
192192
and the domain name for your cluster is `cluster.local`, then the Pod has a DNS name:
@@ -195,13 +195,14 @@ and the domain name for your cluster is `cluster.local`, then the Pod has a DNS
195195
196196
Any Pods exposed by a Service have the following DNS resolution available:
197197
198-
`pod-ip-address.service-name.my-namespace.svc.cluster-domain.example`.
198+
`pod-ipv4-address.service-name.my-namespace.svc.cluster-domain.example`.
199199
-->
200200
### A/AAAA 记录 {#a-aaaa-records}
201201

202-
一般而言,Pod 会对应如下 DNS 名字解析:
202+
在实现 [DNS 规范](https://github.com/kubernetes/dns/blob/master/docs/specification.md)之前,
203+
Kube-DNS 版本使用以下 DNS 解析:
203204

204-
`pod-ip-address.my-namespace.pod.cluster-domain.example`
205+
`pod-ipv4-address.my-namespace.pod.cluster-domain.example`
205206

206207
例如,对于一个位于 `default` 名字空间,IP 地址为 172.17.0.3 的 Pod,
207208
如果集群的域名为 `cluster.local`,则 Pod 会对应 DNS 名称:
@@ -210,7 +211,7 @@ Any Pods exposed by a Service have the following DNS resolution available:
210211

211212
通过 Service 暴露出来的所有 Pod 都会有如下 DNS 解析名称可用:
212213

213-
`pod-ip-address.service-name.my-namespace.svc.cluster-domain.example`
214+
`pod-ipv4-address.service-name.my-namespace.svc.cluster-domain.example`
214215

215216
<!--
216217
### Pod's hostname and subdomain fields

0 commit comments

Comments
 (0)