The DNS lookup not working for the pod. Reference: CKA mock exam 2 Question 7 T . . .

Mohamed A:
the DNS lookup not working for the pod. Reference: CKA mock exam 2 Question 7

Tried:

kubectl exec -it busybox – nslookup nginx-resolver-service (this worked for the service)

kubectl exec -it busybox – nslookup nginx-resolver (this doesnt work for the POD)

Narendra Singh:
For pod use the pod IP instead of it’s name. And use hyphen in place of dots in the IP address. It should work then.