You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes#6: An oddysee: All resolves to a known Ubuntu bug :( Now a new role resolves that problem and kube-dns picks up the correct DNS nameserver from /etc/resolve.conf.
> Kubernetes DNS schedules a DNS Pod and Service on the cluster, and configures the kubelets to tell individual containers to use the DNS Service’s IP to resolve DNS names.
143
147
144
-
####### nslookup for kubernetes not working in kubedns / main.yml
148
+
149
+
###### nslookup for kubernetes not working in kubedns / main.yml
145
150
146
151
We set `--ip-masq=false` inside the `docker.service`. The problem is
###### if nslookup still doesnt work - "If the outer resolv.conf points to 127.0.0.1:53, then you will have a DNS lookup loop"
176
+
177
+
see https://github.com/kubernetes/kubernetes/issues/49411#issuecomment-318096636
178
+
179
+
> Kubedns inherits the contents of “/etc/resolv.conf” something the maintainers of these pods should document at the following site (https://github.com/kubernetes/kubernetes/tree/master/cluster/addons/dns ) as it takes a lot of research and googling to find such details hidden under forum comments. My two cents
180
+
181
+
check your Ubuntu boxes `cat /etc/resolve.conf`:
182
+
183
+
```
184
+
nameserver 127.0.0.53
185
+
```
186
+
187
+
> systemd-resolved on my host listens on 127.0.0.53:53 for dns queries, as soon as I uninstall systemd-resolved and install dnsmasq my node has an entry of 127.0.0.1 in /etc/resolv.conf instead of 127.0.0.53, this gets inherited by the kubedns pods and for some reason its able to forward unresolved queries to my host dnsmasq. Earlier, the kubedns inherited the 127.0.0.53 IP from node “/etc/resolv.conf” and for some reason its not able to talk to the node systemd-resolved at that IP.
188
+
189
+
190
+
__Solution:__
191
+
192
+
See https://askubuntu.com/a/974482/451114 & https://askubuntu.com/questions/952284/dns-system-is-failing-to-resolve-domain-names-occasionally#comment1589832_952284
0 commit comments