How to install and configure bind + centos6

Post Reply
a24uall
Site Admin
Posts: 166
Joined: Sun Jul 01, 2012 9:07 am

How to install and configure bind + centos6

Post by a24uall »

yum install bind-chroot
In named.conf change
vi /etc/named.conf
listen-on port 53 { IP_ADDRESS1; IP_ADDRESS2; };
allow-query { any; };
recursion no;
Add the zone file path to the bottom of named.conf
vi /etc/named.conf
zone "domain.com" IN {
type master;
file "/var/named/domain.com.db";
};
vi /var/named/domain.com.db
Sample zone file

Code: Select all

; Zone file for anugames.com
$TTL 14400
anugames.com.        86400   IN      SOA     ns1.chemparathy.com.    a24uall.gmail.com.      (
                                                2013042502 ;Serial Number
                                                86400 ;refresh
                                                7200 ;retry
                                                3600000 ;expire
                                                86400 ;minimum
        )
anugames.com.        86400   IN      NS      ns1.chemparathy.com.
anugames.com.        86400   IN      NS      ns2.chemparathy.com.
ns2     14400   IN      A       68.171.223.60
ns1     14400   IN      A       68.171.223.59
anugames.com.        14400   IN      A       68.171.223.59
localhost       14400   IN      A       127.0.0.1
anugames.com.        14400   IN      MX      0       anugames.com.
mail    14400   IN      CNAME   anugames.com.
www     14400   IN      CNAME   anugames.com.
ftp     14400   IN      CNAME   anugames.com.
Arun
WebhostingDevelopment.com
Post Reply

Return to “DNS”