Securing-Optimizing-RH-Linux-1_2_243
Comments and suggestions concerning this book should be mailed to gmourani@videotron.ca
© Copyright 1999-2000 Gerhard Mourani and Open Network Architecture ®
243
dumpdb
stats
trace [level]
notrace
querylog
qrylog
help
quit
ndc> /e
DNS Users Tools
The commands listed bellows are some that we use often in our regular use but much more exist
and you must check the man page and documentation for more details and information.
nslookup
The nslookup program allows the user to query Internet domain name servers interactively or
non-interactively. In interactive mode the user can query name servers for information about
various hosts, domains and print a list of hosts in a domain. In non-interactive mode the user can
just print the name and request information for a host or domain.
Interactive mode has a lot options and commands, it is recommended to see the man page of
nslookup or the help under nslookup Interactive mode.
·
To enter under nslookup Interactive mode, use the command:
[root@deep /]# nslookup
Default Server: deep.openarch.com
Address: 208.164.186.1
> help
$Id: nslookup.help,v 8.4 1996/10/25 18:09:41 vixie Exp $
Commands:
(identifiers are shown in uppercase, [] means optional)
NAME
- print info about the host/domain NAME using default server
NAME1 NAME2
- as above, but use NAME2 as server
help or ?
- print info on common commands; see nslookup(1) for details
set OPTION
- set an option
all
- print options, current server and host
[no]debug
- print debugging information
[no]d2
- print exhaustive debugging information
·
To run in non-interactive mode, use the command:
[root@deep /]# nslookup www.redhat.com
Server: deep.openarch.com
Address: 208.164.186.1
Non-authoritative answer:
Name: www.portal.redhat.com
Addresses: 206.132.41.202, 206.132.41.203
Aliases: www.redhat.com
Where <www.redhat.com> is the host name or Internet address of the name server to be looked
up.
dnsquery
The dnsquery program query domain name servers via the resolver library calls /etc/resolv.conf.