nslookup explanations

Various explanations for when using nslookup

nslookup interactive vs. non-interactive mode

nslookup can be used in two modes:

  • An interactive mode
  • A non-interactive mode

Interactive mode

To make a query in interactive mode, type in nslookup and press Enter to activate the nslookup tool. You then type in the arguments for nslookup.

$ nslookup

nslookup interactive mode example with Google

Non-interactive mode

In the non-interactive mode, simply write your nslookup in one line:

$ nslookup my_domain_name

nslookup non-interactive mode example