I have kubernetes cluster running on Ubuntu 16.04
. When I run nslookup kubernetes.default
on master
it shows below:
Server: 192.168.88.21
Address: 192.168.88.21#53
** server can't find kubernetes.default: NXDOMAIN
Below is the content of /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 192.168.88.21
nameserver 127.0.1.1
search VISDWK.local
Using kubernetes version
kubeadm version: &version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.1", GitCommit:"eec55b9ba98609a46fee712359c7b5b365bdd920", GitTreeState:"clean", BuildDate:"2018-12-13T10:36:44Z", GoVersion:"go1.11.2", Compiler:"gc", Platform:"linux/amd64"}
Using weave for networking and installed using:
kubectl apply -f "https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 | tr -d '\n')"
coredns
pods are running fine:
coredns-86c58d9df4-42xqc 1/1 Running 8 1d6h
coredns-86c58d9df4-p6d98 1/1 Running 7 1d1h
Below are the logs of coredns-86c58d9df4-42xqc
.:53
2019-02-08T08:40:10.038Z [INFO] CoreDNS-1.2.6
2019-02-08T08:40:10.039Z [INFO] linux/amd64, go1.11.2, 756749c
CoreDNS-1.2.6
linux/amd64, go1.11.2, 756749c
[INFO] plugin/reload: Running configuration MD5 = f65c4821c8a9b7b5eb30fa4fbc167769
t
Can anyone please help me debug this issue. Please help. Thanks.