Access Control List In DNS ACL Domain Name Service

Setup ACL in rhel5 DNS :allow­query:
From Master or Slave DNS to Client for resolution system1: allow sys2 to resolve dns entries
Step 1: #vim /var/named/chroot/etc/named.conf
acl friend { 192.168.0.1; };
options {
directory “/var/named”;
};
zone “rhel5.com” {
type master;
file “rhel5.com.db”;
allow­query { friend; };
};
Step 2:
restart the service and check the resolvation
#service named restart
#rndc reload
allow­transfer:
From Master to Slave DNS to transfer zone entries
system1:allow system2 to transfer zone entries
Step 1:
Access Control list In DNS
#vim /var/named/chroot/etc/named.conf
acl slaveserver { 192.168.0.20; };
options {
directory “/var/named”;
};
zone “rhel5.com” {
type master;
file “rhel5.com.db”;
allow­transfer { slaveserver; };
};
Step 2:
restart the service and check the resolvation
#service named restart
#rndc reload
allow­recursion:
From forward dns server to client for resolvation
system3: configure ACL in DNS
allow system2 to transfer zone entries
Step 1:
#vim /var/named/chroot/etc/named.conf
acl client { 192.168.0.3; };
options {
directory “/var/named”;
};
zone “rhel5.com” {
type forward;
forwarders { 192.168.0.10; };
allow­recursion { client; };
};
Step 2:
restart the service and check the resolvation
#service named restart
#rndc reload
How to setup ACL in DNS Finally Setup and configure ACL in DNS configured successfully.

Post a Comment

0 Comments