{"id":994,"date":"2026-03-13T10:27:25","date_gmt":"2026-03-13T09:27:25","guid":{"rendered":"https:\/\/www.ume.li\/blog\/?p=994"},"modified":"2026-03-13T10:28:17","modified_gmt":"2026-03-13T09:28:17","slug":"fun-time-with-kubernetes-and-dns","status":"publish","type":"post","link":"https:\/\/www.ume.li\/blog\/2026\/03\/13\/fun-time-with-kubernetes-and-dns\/","title":{"rendered":"Fun time with kubernetes and dns"},"content":{"rendered":"<p>We had installed the component pack for HCL Connections 8 in a brand new kubernetes environment. All the containers started and looked fine. Once we routed the traffic through the mw-proxy, Connections stopped working.<\/p>\n<p>After a long investigation period we found the problem in the containers:<\/p>\n<p>nslookup ihs-internal.test.com worked<br \/>\nping ihs-internal.test.com returned a &#8220;Name or service not known&#8221; error<br \/>\ngetent hosts ihs-internal.test.com returned nothing<\/p>\n<p>Of course we did the first tests with a busybox conatiner. And of course nsloookup, ping and getent worked in the busybox&#8230;.<\/p>\n<p>After some extensive researching, the source of the problem had been identified in the \/etc\/resolv.conf. The file contained the line:<br \/>\noptions ndots:5<\/p>\n<p>For one deployment, that could have been fixed with a simple dnsConfig entry:<br \/>\n<code><br \/>\ndnsConfig:<br \/>\n options:<br \/>\n    - name: ndots<br \/>\n      value: \"2\"<br \/>\n<\/code><\/p>\n<p>But the Componenpack has 20+ Deployments..<\/p>\n<p>Digging deeper into that issue showed that each worker node had a \/etc\/resolv.conf like this:<br \/>\n<code><br \/>\nnameserver 10.100.50.10<br \/>\nnameserver 10.100.50.11<br \/>\nsearch servers.cnx.test.com<br \/>\n<\/code><\/p>\n<p>The next step had been to add the doamin test.com as a suffix<br \/>\n<code><br \/>\nnameserver 10.100.50.10<br \/>\nnameserver 10.100.50.11<br \/>\nsearch servers.cnx.test.com test.com<br \/>\n<\/code><br \/>\nWhich did not help at all.<\/p>\n<p>So we removed the search line completely. As we always use the FQDN and don&#8217;t rely on the shortnames.<br \/>\n<code><br \/>\nnameserver 10.100.50.10<br \/>\nnameserver 10.100.50.11<br \/>\n<\/code><\/p>\n<p>So after all kubernetes nodes had been patched with this new resolv.conf, nslookup, ping and getent returned the expected results in all the Componentpack containers.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We had installed the component pack for HCL Connections 8 in a brand new kubernetes environment. All the containers started<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[54,23],"tags":[132,130,131,129,128,133,134],"class_list":["post-994","post","type-post","status-publish","format-standard","hentry","category-component-pack","category-connections","tag-componentpack","tag-coredns","tag-dns","tag-k8s","tag-kubernetes","tag-nslookup","tag-ping"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/posts\/994","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/comments?post=994"}],"version-history":[{"count":3,"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/posts\/994\/revisions"}],"predecessor-version":[{"id":997,"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/posts\/994\/revisions\/997"}],"wp:attachment":[{"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/media?parent=994"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/categories?post=994"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/tags?post=994"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}