This tutorial explains how you can run your own web server on CentOS 5 with the help of Apache and the BIND name server.
Installing necessary packages
yum install bind bind-chroot bind-libs bind-utils caching-nameserver -y
After installing the necessary packages you are ready to start configuring named.conf. You may check and see that there is no named.conf in your /etc/ directory in Centos 5. No worries here you can see a sample named.conf file. Now create the file /etc/named.conf and copy/paste the content of the sample config file – just make sure you replace website.com with your own domain name.
Read more at howtoforge.com