Introduction
Sometimes you need to find the address of a website or check if a domain name is working correctly. nslookup and dig are tools that help you ask the internet's phone book, called DNS, to find this information for you.
When you want to find the IP address of a website like example.com
When you need to check if your domain name is pointing to the right server
When troubleshooting internet connection problems related to domain names
When you want to see detailed information about DNS records for a domain
When you want to verify if DNS changes have been updated properly