nslookup.docbook revision 1b06367c345e972a0c719a6e821db3e875f20c3b
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.0//EN"
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews "http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd"
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews [<!ENTITY mdash "—">]>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - Copyright (C) 2004-2006 Internet Systems Consortium, Inc. ("ISC")
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - Permission to use, copy, modify, and distribute this software for any
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - purpose with or without fee is hereby granted, provided that the above
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - copyright notice and this permission notice appear in all copies.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - PERFORMANCE OF THIS SOFTWARE.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews<!-- $Id: nslookup.docbook,v 1.10 2006/01/06 00:01:44 marka Exp $ -->
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - Copyright (c) 1985, 1989
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - The Regents of the University of California. All rights reserved.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - Redistribution and use in source and binary forms, with or without
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - modification, are permitted provided that the following conditions
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - 1. Redistributions of source code must retain the above copyright
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - notice, this list of conditions and the following disclaimer.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - 2. Redistributions in binary form must reproduce the above copyright
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - notice, this list of conditions and the following disclaimer in the
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - documentation and/or other materials provided with the distribution.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - 3. All advertising materials mentioning features or use of this software
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - must display the following acknowledgement:
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - This product includes software developed by the University of
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - California, Berkeley and its contributors.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - 4. Neither the name of the University nor the names of its contributors
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - may be used to endorse or promote products derived from this software
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - without specific prior written permission.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - SUCH DAMAGE.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <refentryinfo>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews </refentryinfo>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <refnamediv>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <refpurpose>query Internet name servers interactively</refpurpose>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews </refnamediv>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews </copyright>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <refsynopsisdiv>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <cmdsynopsis>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews </cmdsynopsis>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews </refsynopsisdiv>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews is a program to query Internet domain name servers. <command>Nslookup</command>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews has two modes: interactive and non-interactive. Interactive mode allows
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews the user to query name servers for information about various hosts and
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews domains or to print a list of hosts in a domain. Non-interactive mode
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews used to print just the name and requested information for a host or
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews Interactive mode is entered in the following cases:
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews when no arguments are given (the default name server will be used)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews when the first argument is a hyphen (-) and the second argument is
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews the host name or Internet address of a name server.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews </orderedlist>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews Non-interactive mode is used when the name or Internet address of the
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews host to be looked up is given as the first argument. The optional second
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews argument specifies the host name or address of a name server.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews Options can also be specified on the command line if they precede the
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews arguments and are prefixed with a hyphen. For example, to
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews change the default query type to host information, and the initial
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews timeout to 10 seconds, type:
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <informalexample>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <programlisting>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsnslookup -query=hinfo -timeout=10
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews</programlisting>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews </informalexample>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <variablelist>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <varlistentry>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews Look up information for host using the current default server or
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews using server, if specified. If host is an Internet address and
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews the query type is A or PTR, the name of the host is returned.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews If host is a name and does not have a trailing period, the
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews search list is used to qualify the name.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews To look up a host not in the current domain, append a period to
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews </varlistentry>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <varlistentry>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <term><constant>server</constant> <replaceable class="parameter">domain</replaceable></term>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews </varlistentry>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <varlistentry>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <term><constant>lserver</constant> <replaceable class="parameter">domain</replaceable></term>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews Change the default server to <replaceable>domain</replaceable>; <constant>lserver</constant> uses the initial
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews server to look up information about <replaceable>domain</replaceable>, while <constant>server</constant> uses
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews the current default server. If an authoritative answer can't be
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews found, the names of servers that might have the answer are
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews </varlistentry>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <varlistentry>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews not implemented
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews </varlistentry>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <varlistentry>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews not implemented
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews </varlistentry>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <varlistentry>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews not implemented
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews </varlistentry>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <varlistentry>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews not implemented
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews </varlistentry>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <varlistentry>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews not implemented
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews </varlistentry>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <varlistentry>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews not implemented
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews </varlistentry>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <varlistentry>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews Exits the program.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews </varlistentry>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <varlistentry>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <replaceable>keyword<optional>=value</optional></replaceable></term>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews This command is used to change state information that affects
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews the lookups. Valid keywords are:
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <variablelist>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <varlistentry>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews Prints the current values of the frequently used
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews Information about the current default
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews server and host is also printed.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews </varlistentry>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <varlistentry>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <term><constant>class=</constant><replaceable>value</replaceable></term>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews Change the query class to one of:
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <variablelist>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <varlistentry>