The dig and nslookup are network administration command-line tools. They are both helpful for network troubleshooting and gathering information related to Domain Name Server (DNS)…
Source: LXer – How to Install and Use dig and nslookup Commands in Linux