Cài đặt DNS server trên Cent OS 6.4:
Thông tin Primary (Master) DNS server:
Operating System : CentOS 6.3 32 bit (Minimal Server)
Hostname : masterdns.abc.com
IP Address : 192.168.1.101/24
Thông tin Secondary(Slave) DNS server:
Operating System : CentOS 6.3 32 bit (Minimal Server)1. Cài đặt Primary(Master) DNS Server:
Hostname : slavedns.ostechnix.com
IP Address : 192.168.1.102/24
[root@masterdns ~]# yum install bind* -y2. Cấu hình DNS server:
[root@CLI ~]# vi /etc/named.conf
options {
##Dia chi IP Master DNS##
listen-on port 53 { 127.0.0.1; 192.168.1.101; };
listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
##Dai dia chi IP##
allow-query { localhost; 192.168.1.0/24; };
##Dia chi IP DNS server du phong
allow-transfer { localhost; 192.168.1.102;};
recursion yes;
dnssec-enable yes;
dnssec-validation yes;
dnssec-lookaside auto;
/* Path to ISC DLV key */
bindkeys-file "/etc/named.iscdlv.key";
managed-keys-directory "/var/named/dynamic";
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
zone "." IN {
type hint;
file "named.ca";
};
##THONG TIN ZONE THUAN
zone "abc.com" IN {
type master;
file "fwd.abc.com";
allow-update {none;};
};
##THONG TIN ZONE NGHICH
zone "1.168.192.in-addr.arpa" IN {
type master;
file "rev.abc.com";
allow-update {none;};
};
include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";
Tao ra cac file:
0 nhận xét:
Đăng nhận xét
Lưu ý: Chỉ thành viên của blog này mới được đăng nhận xét.