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