-
Notifications
You must be signed in to change notification settings - Fork 467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kubedns returns NXDOMAIN from inside PODs but works from outside #253
Comments
Can you provide the version of busybox you are using ? We found several similar use case lately, and it was related to busybox itself. check this comment : kubernetes/kubernetes#66924 (comment)
and this issue related to busybox : docker-library/busybox#48 |
That was exactly it. Would never have thought of that. Thank you so much. |
@geosword : I guess we can close that issue now ? |
im not using any busybox but still getting this same error! @fturib ** server can't find consul-0: NXDOMAIN |
@AATHITH, What did the command look like as you wrote it? From where did you execute the command? |
@chrisohaver ** server can't find podname: NXDOMAIN I run the command in kubernetes master |
This will not work from a node, it will only work from a Pod. From a node, you are just querying the upstream server (67.207.67.3), and of course it has no knowledge of the Pods in your cluster. |
image: gcr.io/google_containers/k8s-dns-(kube-dns|dnsmasq-nanny|sidecar)-amd64:1.14.8
I've run through: https://kubernetes.io/docs/tasks/administer-cluster/dns-debugging-resolution/
Everything is correct (apart from performing nslookups from the busybox pod).
However:
The resolve.conf of busybox:
Aside from busybox not being able to resolve "Kubernetes" on its own. "Non-authoritative answer:" Seems incorrect as well.
Just for the removal of doubt. Im expecting
bddcbpkbn1:~ # kubectl exec -ti busybox-5ccc978d8d-x87kb -- nslookup kubernetes
To return "172.17.0.1"
The text was updated successfully, but these errors were encountered: