Question: what is the difference between nslookup and dig command. with anyone example of both?
Answer: dig is a command line utility for probing the DNS. It produces multi-line output that you have to inspect as a whole but gives you a more comprehensive answer than host. ... nslookup was the first tool for querying the DNS. It's really a CLI (command-line-interface) for interacting with the DNS.