Setup ACL in rhel5 DNS :allowquery:
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”;
allowquery { friend; };
};
Step 2:
restart the service and check the resolvation
#service named restart
#rndc reload
allowtransfer:
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”;
allowtransfer { slaveserver; };
};
Step 2:
restart the service and check the resolvation
#service named restart
#rndc reload
allowrecursion:
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; };
allowrecursion { 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.
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”;
allowquery { friend; };
};
Step 2:
restart the service and check the resolvation
#service named restart
#rndc reload
allowtransfer:
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”;
allowtransfer { slaveserver; };
};
Step 2:
restart the service and check the resolvation
#service named restart
#rndc reload
allowrecursion:
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; };
allowrecursion { 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.
0 Comments