K8s uses the internal DNS by default if your tried to hit a pod using any name:
For Ex: Try this kubectl run pod1 --image=busybox:1.28 --command sleep 4800 kubectl run pod2 --image=busybox:1.28 --command sleep 4800 kubectl expose pod pod1 --port=8080 kubectl expose pod pod2 --port=8080 kubectl get svc
Then exec to any pod using: kubectl exec pod1 -it /bin/sh
You can then use the command nslookup to search for the service nslookup pod1
It will return something like this Server: 10.96.0.10 Address 1: 10.96.0.10 kube-dns.kube-system.svc.cluster.local
Name: pod1 Address 1: 10.50.192.1 pod1
Note that pod1 in that case is the name of the pod.
If you want to use the fqdn of the service, like discussed in the video, you can use nslookup pod1.default.svc.cluster.local
or If you don’t remember the full syntax nslookup pod1.default
It will then return the FQDN as here pod1 is the name of the service. Output should be like Server: 10.96.0.10 Address 1: 10.96.0.10 kube-dns.kube-system.svc.cluster.local