DNS Footprinting
A domain name server (DNS) is what translates an IP address into a domain name. For example, if one types in “CNN.com” or “151.101.193.67” both will go to the same website. The DNS server can yield useful information about the network, like domain name and IP address.
Dig tends to return more detailed information:

Note. Screenshot of Dig on macOS.

Note. Screenshot of nslookup on macOS.
Notice the increased verbosity of dig vis-à-vis nslookup. Also, since nslookup uses its own resolver cache to make DNS queries (Cooper, 2021), results can be inconsistent:

Note. Screenshot of nslookup in Windows.
Notice the Windows version returned two entries, but both are referencing the same IP address. Information on the ".50" server was not returned, whereas in the Mac version, it did.
Nslookup is built into Windows, but Dig requires BIND (a software suite) Both tools are available for Linux and Mac.
