Debugging DNS resolutions in kubernetes Debugging DNS resolutions in kubernetes kubernetes kubernetes

Debugging DNS resolutions in kubernetes


It would appear that one of your DNS Pods is not providing DNS services.

The evidence is is in the statement that "only few nodes are able to connect and other throws error unable to connect to iot hub"

This is a classic symptom of load-balancing with a failed node in the loop.

Try:

  1. Remove the DNS server pod that gave the message: visdwk.azure-devices.net.visdwknamespace.svc.cluster.local. udp 82 false 512" NXDOMAIN qr,aa,rd,ra 175 0.000651078s where visdwk.azure-devices.net
  2. Wait for the changes to propagate through the cluster.
  3. Test the connections.

If this is correct they should all connect.

To confirm, add the pod back and remove the other one. Retest, they should all fail to connect.