HP-UX IP Address and Client Management Administrator's Guide (October 2009)

(that is, if you have created an /etc/resolv.conf file that directs BIND queries to a name
server on another host), you need not run the named daemon on your host.
Before you start the name server daemon, ensure that syslogd is running. syslogd logs
informational and error messages. For information on configuring syslogd, see the HP-UX
Internet Services Administrators Guide at the URL
http://www.docs.hp.com/hpux/netcom/index.html#Internet%20Services.
Follow these steps to start the name server daemon:
1. In the /etc/rc.config.d/namesvrs file, set the NAMED environment variable to 1, as
follows:
NAMED=1
2. Issue the following command to determine whether named is already running:
ps -ef grep named
3. If named is not running, issue the following command to start named:
/sbin/init.d/named start
For more information, type man 1M named at the HP-UX prompt.
Verifying the Name Server
You can use nslookup to query the name server interactively by specifying either the host name
or the respective IP address of the host. nslookup displays the host name and IP address of the
queried host.
To check whether the name server is configured properly, perform the following steps:
1. Start nslookup using the following command:
/usr/bin/nslookup
2. At the > prompt, specify the name server you want to test in the server command as
follows:
> server BIND_server_hostname
> server indigo.div.inc.com
The server command causes nslookup to use the host indigo.div.inc.com as the
name server for all the queries.
3. At the > prompt, type the host name for the name server to look up, as in the following
example:
> charlie
charlie is a host in the domain div.inc.com, where indigo.div.inc.com is configured
as the name server. Therefore, the following output is displayed at the > prompt:
Name Server: indigo.div.inc.com
Addresses: 15.19.14.100, 15.19.15.100
Name: charlie.div.inc.com
Address: 15.19.9.100
4. In the name servers domain (that is, div.inc.com), look up several host names and IP
addresses of hosts and check whether the respective host names and IP addresses displayed
are correct.
5. At the > prompt, type the following commands to verify that your name server queries root
name servers:
> set type=ns
.
Starting the Name Server Daemon 85