为什么kubernetes的DNS格式pod DNS A记录名称在记录名称中带有pod IP地址

时间:2019-02-01 14:06:27

标签: kubernetes dns

从文档:
https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pods

Pods
A Records
When enabled, pods are assigned a DNS A record in the form of “pod-ip-address.my-namespace.pod.cluster.local”.

For example, a pod with IP 1.2.3.4 in the namespace default with a DNS name of cluster.local would have an entry: 1-2-3-4.default.pod.cluster.local.

正在寻找kubernetes的记录中的名字格式荚DNS A记录与IP的理由的说明。如果客户端知道IP,以构建记录名称,一个DNS查询,为什么一个DNS查询?

0 个答案:

没有答案