To start an interactive session, just type nslookup :
If you need help, type ? or help.[94] When you want to exit, type ^D (control-D) or exit. If you try to exit from nslookup by interrupting it with ^C (or whatever your interrupt character is), you won't get very far. nslookup catches the interrupt, stops whatever it is doing (like a zone transfer), and gives you the > prompt.% nslookup Default Server: terminator.movie.edu Address: 0.0.0.0 > ^D
[94]The help function isn't implemented in BIND 9's nslookup as of 9.1.0.For a noninteractive lookup, include the name you are looking up on the command line:
% nslookup carrie Server: terminator.movie.edu Address: 0.0.0.0 Name: carrie.movie.edu Address: 192.253.253.4