HP-UX IP Address and Client Management Administrator's Guide HP-UX 11i v2, HP-UX 11i v3
# cp -p /usr/lib/libcrypto.sl /chroot/named/usr/lib/
# cp -p /usr/lib/libdld.2 /chroot/named/usr/lib/
Additionally, for a PA-RISC system, create a hard link for libc.2 in the usr/lib directory
of the chroot directory:
# ln /usr/lib/libc.2 /chroot/named/usr/lib/libc.2
6. Obtain the major and minor numbers of the device special poll and random files using the
ls command.
# ls -l /dev/poll
The output displayed is similar to the following output:
crw-rw-rw- 1 root root 26 0x000000 Oct 15 15:45 /dev/poll
where,
Major number is the decimal number in the fifth column. In this example it is 26.
Minor number is the hexadecimal number in the sixth column. In this example it is 0x000000.
NOTE: It is not necessary for the device special random file to be present in the original
root. You can proceed with the setup even if the file does not exist.
7. Create the device special poll and random files in the new root’s /dev directory using the
mknod command.
# mknod /chroot/named/dev/poll c MAJ_NUM MIN_NUM
# mknod /chroot/named/dev/random c MAJ_NUM MIN_NUM
where,
MAJ_NUM is the major number of the corresponding device special file of the actual root.
MIN_NUM is the minor number of the corresponding device special file of the actual root.
Example 2-1 depicts the usage of the mknod command for creating the device special poll
file.
Example 2-1 mknod Command Usage
# mknod /chroot/named/dev/poll c 26 0x000000
NOTE: The major number, minor number and permissions of the original device special
files and new device special files must be the same.
8. Change the permission of all the newly created directories and copied libraries to 755 using
the chmod command.
9. After you setup the chroot environment, configure BIND and start named with the -t
option to verify if it is set up correctly.
For information on how to configure BIND, see “Configuration procedures to configure BIND”
(page 61). For information on how to run named in the chroot environment see the ‘-t’ option
in the named(1M) manpage.
Creating and Registering a New Domain
To set up a new domain, follow the steps described in this section. If you already have a domain,
you need only add hosts to the existing domain.
The following steps describe how to create a new domain:
62 Configuring and Administering the BIND Name Service