Install the BIND software
# yum -y install bind
# yum -y install caching-nameserver *

Configure
# cd /var/named/chroot/etc/
# ls -la
total 48
drwxr-x— 2 root named 4096 Apr 29 03:06 .
drwxr-x— 5 root named 4096 Feb 23 06:35 ..
-rw-r–r– 1 root root  3519 Feb 27  2006 localtime
-rw-r—– 1 root named 1230 Feb 23 06:35 named.caching-nameserver.conf
-rw-r—– 1 root named  955 Feb 23 06:35 named.rfc1912.zones
-rw-r—– 1 root named  113 Dec 17 06:52 rndc.key

# cp named.caching-nameserver.conf named.conf
# chown root:named named.conf

Because my customer just wanted to use DNS on his own server, I didn’t need to modify the named.conf file. If he allowed the other servers to access it, I need to change “127.0.0.1″ and “localhost” in the named.conf file to “any”.
# vim named.conf

Start the named service
# chkconfig named on
# service named start

Modify the /etc/resolv.conf file, and add a line “nameserver 127.0.0.1″ at the top of the file
# vi /etc/resolv.conf
nameserver 127.0.0.1