Cluster information:
Kubernetes version: v1.23.1
Cloud being used: bare-metal
Installation method: kubeadm
Host OS: Ubuntu 20.04
CNI and version: Flannel
CRI and version: cri-o v1.23.1
Hi Everybody,
I am having some strange DNS issues with a fresh cluster setup.
I am not able to resolve pods by their full FQDN, e.g. postgres.namespace.svc.cluster.local
.
Everything is working just fine if I am not querying the whole FQDN, like postgres.namespace
or postgres.namespace.svc
.
Below are some example queries and their result:
nslookup kube-dns.kube-system.svc
Server: 10.96.0.10
Address: 10.96.0.10#53
Name: kube-dns.kube-system.svc.cluster.local
Address: 10.96.0.10
nslookup kube-dns.kube-system.svc.cluster.local
Server: 10.96.0.10
Address: 10.96.0.10#53
** server can't find kube-dns.kube-system.svc.cluster.local.localdomain.lan: SERVFAIL
command terminated with exit code 1
As you can see in the second dns response, localdomain.lan
was appended;
localdomain.lan
is my networks local search domain.
Any ideas why this is happening?
Is this expected behaviour?
Thanks in advance!