12.2. Interactive Versus NoninteractiveLet's start our tutorial on nslookup by looking at how to start it and how to exit from it. You can run nslookup either interactively or noninteractively. If you only want to look up one record for one domain name, use the noninteractive form. If you plan on doing something more extensive, such as changing name servers or options, use an interactive session.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 |
|