{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/64924","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/64924/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/64924/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/64924/events","html_url":"https://github.com/kubernetes/kubernetes/issues/64924","id":330729111,"node_id":"MDU6SXNzdWUzMzA3MjkxMTE=","number":64924,"title":"ndots breaks DNS resolving","user":{"login":"davidkarlsen","id":18299,"node_id":"MDQ6VXNlcjE4Mjk5","avatar_url":"https://avatars0.githubusercontent.com/u/18299?v=4","gravatar_id":"","url":"https://api.github.com/users/davidkarlsen","html_url":"https://github.com/davidkarlsen","followers_url":"https://api.github.com/users/davidkarlsen/followers","following_url":"https://api.github.com/users/davidkarlsen/following{/other_user}","gists_url":"https://api.github.com/users/davidkarlsen/gists{/gist_id}","starred_url":"https://api.github.com/users/davidkarlsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidkarlsen/subscriptions","organizations_url":"https://api.github.com/users/davidkarlsen/orgs","repos_url":"https://api.github.com/users/davidkarlsen/repos","events_url":"https://api.github.com/users/davidkarlsen/events{/privacy}","received_events_url":"https://api.github.com/users/davidkarlsen/received_events","type":"User","site_admin":false},"labels":[{"id":105146071,"node_id":"MDU6TGFiZWwxMDUxNDYwNzE=","url":"https://api.github.com/repos/kubernetes/kubernetes/labels/kind/bug","name":"kind/bug","color":"e11d21","default":false},{"id":116712108,"node_id":"MDU6TGFiZWwxMTY3MTIxMDg=","url":"https://api.github.com/repos/kubernetes/kubernetes/labels/sig/network","name":"sig/network","color":"d2b48c","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2018-06-08T16:46:13Z","updated_at":"2018-06-14T19:39:16Z","closed_at":null,"author_association":"NONE","body":"\r\n\r\n/kind bug\r\n\r\n\r\n**What happened**:\r\n\r\ncannot resolve cluster-external names\r\nnslookup google.com\r\nnslookup: can't resolve '(null)': Name does not resolve\r\n\r\nnslookup: can't resolve 'google.com': Name does not resolve\r\n\r\n\r\n**What you expected to happen**:\r\n\r\nbe able to resolve\r\n\r\n**How to reproduce it (as minimally and precisely as possible)**:\r\ncreate a pod with:\r\n  dnsPolicy: ClusterFirst\r\n\r\n**Anything else we need to know?**:\r\ncat /etc/resolv.conf\r\nnameserver 10.96.0.10\r\nsearch weave.svc.cluster.local svc.cluster.local cluster.local lan.davidkarlsen.com davidkarlsen.com\r\noptions ndots:5 <-- this should not be there\r\n\r\nif removing ndots:5 it will be able to resolve external adresses as expected according to policy\r\n\r\n\r\n**Environment**:\r\n- Kubernetes version (use `kubectl version`):\r\nkubectl version\r\nClient Version: version.Info{Major:\"1\", Minor:\"10\", GitVersion:\"v1.10.4\", GitCommit:\"5ca598b4ba5abb89bb773071ce452e33fb66339d\", GitTreeState:\"clean\", BuildDate:\"2018-06-06T08:13:03Z\", GoVersion:\"go1.9.3\", Compiler:\"gc\", Platform:\"linux/amd64\"}\r\nServer Version: version.Info{Major:\"1\", Minor:\"10\", GitVersion:\"v1.10.3\", GitCommit:\"2bba0127d85d5a46ab4b778548be28623b32d0b0\", GitTreeState:\"clean\", BuildDate:\"2018-05-21T09:05:37Z\", GoVersion:\"go1.9.3\", Compiler:\"gc\", Platform:\"linux/amd64\"}\r\n\r\n- Cloud provider or hardware configuration:\r\nkubeadm / bare metal\r\n\r\n- OS (e.g. from /etc/os-release):\r\ncat /etc/os-release \r\nNAME=\"Ubuntu\"\r\nVERSION=\"18.04 LTS (Bionic Beaver)\"\r\nID=ubuntu\r\nID_LIKE=debian\r\nPRETTY_NAME=\"Ubuntu 18.04 LTS\"\r\nVERSION_ID=\"18.04\"\r\nHOME_URL=\"https://www.ubuntu.com/\"\r\nSUPPORT_URL=\"https://help.ubuntu.com/\"\r\nBUG_REPORT_URL=\"https://bugs.launchpad.net/ubuntu/\"\r\nPRIVACY_POLICY_URL=\"https://www.ubuntu.com/legal/terms-and-policies/privacy-policy\"\r\nVERSION_CODENAME=bionic\r\nUBUNTU_CODENAME=bionic\r\n\r\n\r\n- Kernel (e.g. `uname -a`):\r\nuname -a\r\nLinux main.davidkarlsen.com 4.15.0-22-generic #24-Ubuntu SMP Wed May 16 12:15:17 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux\r\n\r\n- Install tools:\r\n\r\nkubeadm\r\n\r\n- Others:\r\nkubectl --namespace kube-system get cm/kube-dns -o yaml\r\napiVersion: v1\r\ndata:\r\n  upstreamNameservers: |\r\n    [\"192.168.3.2\"]\r\nkind: ConfigMap\r\nmetadata:\r\n  annotations:\r\n    kubectl.kubernetes.io/last-applied-configuration: |\r\n      {\"apiVersion\":\"v1\",\"data\":{\"stubDomains\":\"{\\\"lan.davidkarlsen.com\\\": [\\\"192.168.3.2\\\"]}\\n\",\"upstreamNameservers\":\"[\\\"192.168.3.2\\\", \\\"8.8.4.4\\\", \\\"8.8.8.8\\\"]\\n\"},\"kind\":\"ConfigMap\",\"metadata\":{\"annotations\":{},\"name\":\"kube-dns\",\"namespace\":\"kube-system\"}}\r\n  creationTimestamp: 2018-05-28T07:58:16Z\r\n  name: kube-dns\r\n  namespace: kube-system\r\n  resourceVersion: \"3162037\"\r\n  selfLink: /api/v1/namespaces/kube-system/configmaps/kube-dns\r\n  uid: e0dd4d17-624c-11e8-8edc-00902755ddee\r\n\r\ncat /etc/resolv.conf \r\nnameserver 192.168.3.2\r\nsearch lan.davidkarlsen.com davidkarlsen.com\r\n\r\n(192.168.3.2 uses upstream dns-servers and is able to resolve."},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/397414352","html_url":"https://github.com/kubernetes/kubernetes/issues/64924#issuecomment-397414352","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/64924","id":397414352,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NzQxNDM1Mg==","user":{"login":"davidkarlsen","id":18299,"node_id":"MDQ6VXNlcjE4Mjk5","avatar_url":"https://avatars0.githubusercontent.com/u/18299?v=4","gravatar_id":"","url":"https://api.github.com/users/davidkarlsen","html_url":"https://github.com/davidkarlsen","followers_url":"https://api.github.com/users/davidkarlsen/followers","following_url":"https://api.github.com/users/davidkarlsen/following{/other_user}","gists_url":"https://api.github.com/users/davidkarlsen/gists{/gist_id}","starred_url":"https://api.github.com/users/davidkarlsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidkarlsen/subscriptions","organizations_url":"https://api.github.com/users/davidkarlsen/orgs","repos_url":"https://api.github.com/users/davidkarlsen/repos","events_url":"https://api.github.com/users/davidkarlsen/events{/privacy}","received_events_url":"https://api.github.com/users/davidkarlsen/received_events","type":"User","site_admin":false},"created_at":"2018-06-14T19:39:16Z","updated_at":"2018-06-14T19:39:16Z","author_association":"NONE","body":"Not entirely sure about that: https://serverfault.com/questions/545325/named-returns-empty-noerror-instead-of-nxdomain\r\nNOERROR is returned if the domain exists but not the type, and the resolver library should try the next in the list - don't give up mid-way - also see fix by @zq-david-wang "}}
{"actor":{"display_login":"davidkarlsen"}}