How do forward/reverse lookups differ between “nslookup,” “dig,” and “host”

bsdcommand-line-interfacedomain-name-systemmac-osx

How are "nslookup," "dig," and "host" different (in terms of looking up hostnames or IP addresses)? Which authorities are queried? I'm trying to figure out when I should use one over the others.

Best Answer

The comments that the tools are all the same is wrong. Host/dig work essentially the same way, but nslookup does several undesirable things. The following page provides a good explanation of the flaws with nslookup.