【问题标题】:CoreDNS In Kubernetes.How append domain name when forward?Kubernetes中的CoreDNS。转发时如何附加域名?
【发布时间】:2021-01-27 06:57:35
【问题描述】:

我想在一个 pod 中 Ping 一个节点名。通过 CoreDns 转发到当前集群的另一个服务。 转发时,将域名附加到源节点名,如 /etc/resolv.conf 中的 searches。如何配置 coredns pod 的 yaml 或 coredns 的 corefile。

# in one pod
ping node1
# equivalent
ping node1.xxx.com

【问题讨论】:

    标签: kubernetes coredns


    【解决方案1】:

    您对 DNS 的工作方式有一些误解。 DNS 服务器不负责您“搜索”域。 DNS 服务器完全不知道搜索域,因为这是客户端设置。

    阅读更多关于 pod DNS 设置的完美解释:

    【讨论】:

      猜你喜欢
      • 2019-06-25
      • 2019-05-02
      • 1970-01-01
      • 2019-10-04
      • 1970-01-01
      • 2019-09-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多