nslookup

A command that asks a DNS server what address a name resolves to.

In more detail

It prints the server that answered and the addresses or aliases returned. A successful answer proves name resolution only, not that anything is listening at the address.

Examples

kubectl run dns --image=busybox:1.36 --rm -it -- nslookup web
kubectl run dns --image=busybox:1.36 --rm -it -- nslookup web   # resolve a Service name from inside the cluster

Related terms

Taught in

References

Certification courses