DCOS 在 resolv.conf 中添加 DNS 条目

DCOS Adding DNS entries in resolv.conf

我们已经在预生产环境中设置了 DNS Cname。 resolv.conf 中的这些 DNS 条目正在被 dcos 组件 'Generate resolv.conf' 覆盖。 由于除了我们的本地 cname 条目之外,我们还需要来自 dcos 的条目,您能否指导如何通过 dcos 在 resolv.conf 中添加名称服务器,以便它不会被覆盖?

您需要将它们添加到 config.yml

中的解析器

即使/etc/resolv.conf 中没有反映出来,此处提到的配置https://mesosphere.github.io/mesos-dns/docs/configuration-parameters.html 仍然有效。