make sure Bind is installed if not install them
[root@server1 ~]# rpm -qa | grep bind
bind-chroot-9.2.4-27.0.1.el4
bind-libs-9.2.4-27.0.1.el4
bind-9.2.4-27.0.1.el4
bind-utils-9.2.4-27.0.1.el4
caching-nameserver-7.3-3
make sure bind is running when server starts
[root@server1 ~]# chkconfig named on
[root@server1 ~]# chkconfig --list named
named 0:off 1:off 2:on 3:on 4:on 5:on 6:off
start bind
[root@server1 ~]# service named start
Starting named: [ OK ]
check bind log on /var/log/messages
# tail -f /var/log/messages
Now you have created a caching nameserver.
Add the server's IP into an existing domain zone. i.e. mydns1.mydomain.com by creating an A record.
If you want to setup an authorize DNS server, just point out the new domain'a nameserver to this server.
i.e. new domain name is mynewcompany.com, so ns for mynewcompany.com should point out to mydns1.mydomain.com
To create a zone, records etc, will be discussed on next article.
