The role and related concepts of DNS are not discussed in this article. This article only describes how to use the BIND of RHEL5.1 to implement common DNS functions. BIND package: bind (BIND server package, which is not installed in RHEL5 by default), bind-utils (provides a testing tool program for the DNS server, which is installed by default ), bind-chroot and caching-nameserver. Install the BIND installation package in yum Mode
The role and related concepts of DNS are not discussed in this article. This article only describes how to use the BIND of RHEL 5.1 to implement common DNS functions.
BIND package: bind (BIND server package, which is not installed in RHEL5 by default), bind-utils (provides a testing tool program for the DNS server, which is installed by default ), bind-chroot and caching-nameserver.
Install BIND using yum
The following installation package is an example of a configuration file:
Configure chroot
Chroot is a kind of BIND installation mechanism. After chroot is used, it virtualizes a directory for BIND such as/and/etc. The virtual directory can be modified through the/etc/sysconfig/named file, but the default virtual directory can be used directly.
1: Located in the last row of the file. It indicates/var/named/chroot is/For BIND /. For example, If/etc/named. conf is written to a BIND configuration file, the actual path of the file should be var/named/chroot/etc/named. conf.
All BIND configurations are completed in/var/named/chroot.
BIND configuration steps
BIND first obtains DNS-related options through the global configuration file and determines the primary configuration file to be enabled, the main configuration file defines the available regions and the region configuration file for each region. The region configuration file defines related resource records.