# CoreDNS Host is unreachable

**URL:** <https://discuss.kubernetes.io/t/coredns-host-is-unreachable/17444>\
**Category:** General Discussions\
**Created:** [September 15, 2021, 2:32pm UTC](https://discuss.kubernetes.io/t/coredns-host-is-unreachable/17444 "2021-09-15T14:32:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cortex3](https://avatars.discourse-cdn.com/v4/letter/c/a5b964/32.png) [@cortex3](https://discuss.kubernetes.io/u/cortex3)\
**Post date:** [September 15, 2021, 2:32pm UTC](https://discuss.kubernetes.io/t/coredns-host-is-unreachable/17444/1 "2021-09-15T14:32:47Z")

</div>

### Cluster information:

cluster communication via vpn interface.  
Internet communication via default interface.

Kubernetes version:  
Cloud being used: bare-metal  
Installation method: kubeadm  
Host OS: ubuntu 20.04  
CNI and version: Weave 1.16  
CRI and version: cri-o 1.21.2

Hi,  
I’ve noticed that the DNS resolution inside my cluster doesn’t work.  
A Nslookup command inside a container gives me the following error.

```auto
/ # nslookup kubernetes.default
;; connection timed out; no servers could be reached

```

The resolv.conf shows the correct dns service.  
The nslookup from the node to coredns work for public entries but kubernetes.default gives me an error.  
See coredns log:

```auto
[INFO] 10.85.0.1:34977 - 33664 "A IN a.co. udp 45 false 4096" NOERROR qr,rd,ra 301 0.01980966s
[INFO] 10.85.0.1:53066 - 6560 "A IN kubernetes.default. udp 59 false 4096" NXDOMAIN qr,rd,ra,ad 111 0.020894275s

```

The CoreDNS pod itself is reachable via the node but not from the container.  
Putting a debugging pod into the coredns namespace did not fix the issue.  
The logs for crio, coredns, kube-proxy and kubelet show no errors or suspicious lines.

I’ve already followed the “Debugging DNS Resolution” and “Debug Services” Guides which didn’t help.

I welcome any sort of help and advice.

---

<div class="post-metadata">

**Author:** ![vinodhvenugopal](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/vinodhvenugopal/32/8536_2.png) [@vinodhvenugopal](https://discuss.kubernetes.io/u/vinodhvenugopal)\
**Post date:** [September 17, 2021, 2:00pm UTC](https://discuss.kubernetes.io/t/coredns-host-is-unreachable/17444/2 "2021-09-17T14:00:19Z")

</div>

Hello,  
When you configure you domain name in DNS server, then only “nslookup” will work.

---

<div class="post-metadata">

**Author:** ![cortex3](https://avatars.discourse-cdn.com/v4/letter/c/a5b964/32.png) [@cortex3](https://discuss.kubernetes.io/u/cortex3)\
**Post date:** [September 17, 2021, 2:29pm UTC](https://discuss.kubernetes.io/t/coredns-host-is-unreachable/17444/3 "2021-09-17T14:29:07Z")

</div>

Hi @vinodhvenugopal,  
thank you for your reply.  
What configuration do you mean?  
As far as I understood the documentation kubernetes services should automatically receive an entry inside coredns. And also coredns is entirely not reachable from within my pods. That should not happen by default either from what I can tell.
