Wednesday, April 11, 2012

DNS Server Configuration in CentOS 6.2

DNS { Domain Name System } Server Configuration in CentOS 6.2
Define IP Address in your Linux machine [ Example ]

1. [root@desktop ~]# nano /etc/sysconfig/network-scripts/ifcfg-eth0


2. [root@desktop ~]# nano /etc/hosts


3.  [root@desktop ~]# nano /etc/sysconfig/network


4. [root@desktop ~]# service network restart

Check resolv.conf file .

5. [root@desktop ~]# nano /etc/resolv.conf


Now you need to install all bind packages.

6. [root@desktop ~]# yum install bind* -y


Configure named.conf file .

7. [root@desktop ~]# nano /etc/named.conf


8. [root@desktop ~]# nano /etc/named.rfc1912.zones



9. [root@desktop ~]# cd /var/named/chroot/var/named/

10. [root@desktop named]# cp -v named.localhost for.itcircle.zone

11. [root@desktop named]# cp -v named.loopback rev.itcircle.zone

12. [root@desktop named]# nano for.itcircle.zone 


13. [root@desktop named]# nano rev.itcircle.zone 

14. [root@desktop named]# chown root:named rev.itcircle.zone

15. [root@desktop named]# chown root:named for.itcircle.zone

16. [root@desktop ~]# service named restart
17. [root@desktop ~]# chkconfig named on


18. [root@centos ~]# dig centos.itcircle.co


***Enjoy the magic***





Favorites