{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/26009","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/26009/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/26009/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/26009/events","html_url":"https://github.com/kubernetes/kubernetes/issues/26009","id":156086036,"number":26009,"title":"Host search domains not considered in containers","user":{"login":"Frusty","id":482752,"avatar_url":"https://avatars.githubusercontent.com/u/482752?v=3","gravatar_id":"","url":"https://api.github.com/users/Frusty","html_url":"https://github.com/Frusty","followers_url":"https://api.github.com/users/Frusty/followers","following_url":"https://api.github.com/users/Frusty/following{/other_user}","gists_url":"https://api.github.com/users/Frusty/gists{/gist_id}","starred_url":"https://api.github.com/users/Frusty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Frusty/subscriptions","organizations_url":"https://api.github.com/users/Frusty/orgs","repos_url":"https://api.github.com/users/Frusty/repos","events_url":"https://api.github.com/users/Frusty/events{/privacy}","received_events_url":"https://api.github.com/users/Frusty/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/team/cluster","name":"team/cluster","color":"d2b48c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-21T05:54:12Z","updated_at":"2016-05-26T18:32:41Z","closed_at":null,"body":"Kubernetes 1.2.4\r\nCoreOS beta channel (1010)\r\n\r\nI am running a kubernetes cluster inside an AWS VPC with custom DNS servers. Those are configured in my host /etc/resolv.conf together with an additional search domain (example.com).\r\n\r\nKubernetes DNS Addon is configured to fall back to our DNS servers.\r\n\r\nWhen in a kubernetes managed container, I can nslookup our externally managed systems by their full name (e.g. kafka.example.com) but not by their short name (kafka). On the host, the search domain is respected and `nslookup kafka` returns as expected.\r\n\r\nIf I edit the /etc/resolv.conf inside the container to add my search domain, subsequent lookups work as expected.\r\n\r\nThe DNS documentation states that Kubernetes should respect the hosts resolv.conf and only prepend the kubernetes internal search domains.\r\n\r\n\r\nHow can I add my search domain permanently?"},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/221955937","html_url":"https://github.com/kubernetes/kubernetes/issues/26009#issuecomment-221955937","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/26009","id":221955937,"user":{"login":"Frusty","id":482752,"avatar_url":"https://avatars.githubusercontent.com/u/482752?v=3","gravatar_id":"","url":"https://api.github.com/users/Frusty","html_url":"https://github.com/Frusty","followers_url":"https://api.github.com/users/Frusty/followers","following_url":"https://api.github.com/users/Frusty/following{/other_user}","gists_url":"https://api.github.com/users/Frusty/gists{/gist_id}","starred_url":"https://api.github.com/users/Frusty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Frusty/subscriptions","organizations_url":"https://api.github.com/users/Frusty/orgs","repos_url":"https://api.github.com/users/Frusty/repos","events_url":"https://api.github.com/users/Frusty/events{/privacy}","received_events_url":"https://api.github.com/users/Frusty/received_events","type":"User","site_admin":false},"created_at":"2016-05-26T18:32:41Z","updated_at":"2016-05-26T18:32:41Z","body":"The kubelets do not use `--resolv-conf` flag.\r\n`dnsPolicy` is not part of the kubernetes definition of the POD in question.\r\n\r\ncontainer resolv.conf\r\n```\r\nsearch default.svc.cluster.local svc.cluster.local cluster.local\r\nnameserver 10.200.0.10\r\noptions ndots:5\r\n```"}}
{"actor":{"display_login":"Frusty"}}