HPlogo Installing and Administering Internet Services: HP 9000 Networking > Chapter 3 Configuring and Administering the BIND Name Service

Starting the Name Server Daemon

» 

Technical documentation

Complete book in PDF

 » Table of Contents

 » Index

The name server daemon, /usr/sbin/named, must be running on every primary, secondary, and caching-only name server. If you have configured your system to query a remote name server (that is, if you have created an /etc/resolv.conf file that directs BIND queries to a name server on another host), you do not have to run the named daemon on your host.

Before you start the name server daemon, make sure syslogd is running. syslogd logs informational and error messages. For information on configuring syslogd, see Chapter 2 “Installing and Configuring Internet Services” in this manual.

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 it:

    /sbin/init.d/named start

For more information, type man 1M named at the HP-UX prompt.

Verifying the Name Server

  1. If you are running syslogd, check the /var/adm/syslog/syslog.log file for error messages. If error messages are recorded, see “Troubleshooting the BIND Name Server”.

  2. Start nslookup(1) with the following command:

    /usr/bin/nslookup

  3. At the > prompt, issue the server command to force nslookup to use the server you want to test:

    > server BIND_server_hostname

  4. At the > prompt, type the name of a host for the name server to look up, as in the following example

    > charlie

    You should see output similar to the following:

    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

  5. Look up several host names and IP addresses of hosts in the name server's domain.

  6. At the > prompt, type the following commands to verify that your name server can query root name servers:

    > set type=ns
    > .

    nslookup should display a list of the root name servers in your db.cache file. If it does not, see “Troubleshooting the BIND Name Server”.

  7. Type exit to exit from nslookup.

© 2000 Hewlett-Packard Development Company, L.P.