DekGenius.com
I l@ve RuBoard Previous Section Next Section

12.2 Interactive Versus Noninteractive

Let'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 :

% nslookup
Default Server:  terminator.movie.edu
Address:  0.0.0.0

> ^D

If you need help, type ? or help.[2] 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.

[2] 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
    I l@ve RuBoard Previous Section Next Section