<p>We have setup an okd 3.11 cluster with 100+ nodes. Everything was working fine but then a worker node stopped resolving the registry service internal url. This causes new pods to be scheduled to that node fail with ImagePullBackoff error.</p>
<pre><code>Failed to pull image &quot;docker-registry.default.svc:5000/app-name/app-name:latest&quot;: rpc error: code = Unknown desc = Get https://docker-registry.default.svc:5000/v1/_ping: dial tcp: lookup docker-registry.default.svc on 10.*.*.71:53: server misbehaving
</code></pre>
<p>We tried running nslookup on the worker node and following were the results</p>
<p>While this doesn't work (while it works on other nodes)</p>
<pre><code>[root@worker22 ~]# nslookup docker-registry.default.svc.cluster.local
Server:         10.*.*.71
Address:        10.*.*.71#53

** server can't find docker-registry.default.svc.cluster.local: SERVFAIL
</code></pre>
<p>This works just fine.</p>
<pre><code>[root@worker22 ~]# nslookup docker-registry.default.svc.cluster.local 127.0.0.1
Server:         127.0.0.1
Address:        127.0.0.1#53

Name:   docker-registry.default.svc.cluster.local
Address: 172.*.*.212
</code></pre>
<p>Adding <code>server=/cluster.local/172.30.0.1</code> to dnsmasq conf file <code>/etc/dnsmasq.d/origin-upstream-dns.conf</code> works as a work around but can't find what is causing this.</p>
<p>I have tried adding -q to dnsmasq service's <code>ExecStart</code> and it shows that the dnsmasq won't query the openshift dns running locally at <code>127.0.0.1:53</code>.</p>
<p>Dnsmasq config/resolv.conf is in order on the node.</p>
<p>I have tried restarting dnsmasq/NetworkManager/Docker, I have tried respawning ovs/sdn pods but still no help.</p>

srv_ER
<p>Found some documented evidence that dnsmasq can behave like that.</p>
<p>It has been suggested by some RedHat articles that a long running dnsmasq service may misbehave and stop resolving names. Similar cases have been reported for openshift environment as well.</p>
<p>The links below suggest that restarting the service would solve the problem for some time and then the issue may resurface. As stated earlier, in my case service restart didn't help but oldest remedy in IT worked (rebooting the node solved the problem).</p>
<p>Reference:</p>
<p><a href="https://access.redhat.com/solutions/3393141" rel="nofollow noreferrer">https://access.redhat.com/solutions/3393141</a></p>
<p><a href="https://bugzilla.redhat.com/show_bug.cgi?id=1560489" rel="nofollow noreferrer">https://bugzilla.redhat.com/show_bug.cgi?id=1560489</a></p>
