~choose fonts and sizes~

How to Configure DNS on CentOS 6.3 & RHEL 6.3,Scientific Linux 6.3

############################# STEP-01 ##########################
[root@localhost ~]# hostname
localhost.localdomain
root@localhost ~]# vim /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=server1.example.com

[root@server1 Desktop]# yum install bind -y
Loaded plugins: refresh-packagekit, security
other                                                                                                                  20/20
Setting up Install Process
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
--> Running transaction check
---> Package bind.x86_64 32:9.8.2-0.10.rc1.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================
 Package                 Arch                      Version                                     Repository               Size
=============================================================================================================================
Installing:
 bind                    x86_64                    32:9.8.2-0.10.rc1.el6                       base                    4.0 M

Transaction Summary
=============================================================================================================================
Install       1 Package(s)

Total download size: 4.0 M
Installed size: 7.2 M
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : 32:bind-9.8.2-0.10.rc1.el6.x86_64                                                                         1/1
  Verifying  : 32:bind-9.8.2-0.10.rc1.el6.x86_64                                                                         1/1

Installed:
  bind.x86_64 32:9.8.2-0.10.rc1.el6                                                                                        

Complete!


################################ STEP-02 ########################################

[root@server1 Desktop]# mkdir -p /bakup/dns
[root@server1 Desktop]# cp /etc/named.conf /bakup/dns/named.conf.original
[root@server1 Desktop]# cp /etc/named.rfc1912.zones /bakup/dns/named.rfc1912.zones.original
[root@server1 Desktop]# vim /etc/named.conf
From

11         listen-on port 53 { 127.0.0.1; };

            To

11         listen-on port 53 { 192.168.0.254; };

17         allow-query     { any; };

Save&exit
[root@server1 Desktop]# vim /etc/named.rfc1912.zones

From

 13 zone "localhost.localdomain" IN {
 14         type master;
 15         file "named.localhost";
 16         allow-update { none; };
 17 };

31 zone "1.0.0.127.in-addr.arpa" IN {
 32         type master;
 33         file "named.loopback";
 34         allow-update { none; };
 35 };


To

13 zone "example.com" IN {
 14         type master;
 15         file "forward.zone";
 16         allow-update { none; };
 17 };

31 zone "0.168.192.in-addr.arpa" IN {
 32         type master;
 33         file "reverse.zone";
 34         allow-update { none; };
 35 };
Read More

0 comments:

Post a Comment

Attention: Please don't use spammy comments here. else ur comment will be remove automatically. Thank you.