RAC Attack - Oracle Cluster Database at Home/RAC Attack 12c/Configure Bind DNS
Prev: Prepare Host
Install Linux (e)
- Create VirtualBox VM
- VirtualBox VM Settings
- OS Installation
- Linux Post Installation
- Install VirtualBox Addons
- Configure Bind DNS
- Prepare Linux for Oracle
Next: Create Cluster
- Enable BIND DNS to start at boot time. [root@collabn1 ~]# chkconfig named on
- Change named directory permissions. [root@collabn1 ~]# touch /var/named/racattack [root@collabn1 ~]# chgrp named /var/named/racattack [root@collabn1 ~]# chmod 664 /var/named/racattack [root@collabn1 ~]# chmod g+w /var/named
- Backup the BIND configuration file. [root@collabn1 ~]# cp /etc/named.conf /etc/named.conf.org
- Change /etc/named.conf permissions. [root@collabn1 ~]# chmod 664 /etc/named.conf Otherwise, the original protection may cause trouble in the restarting named step with write-protection errors in /var/log/messages.
- Run the following command or edit the /etc/named.conf file to change the named configuration manually.
COPY/PASTE from PDF file may not work !!! Go to the RAC Attack 12c web page and copy/paste from there |
sed -i -e 's/listen-on .*/listen-on port 53 { 192.168.78.51; };/' \ -e 's/allow-query .*/allow-query { 192.168.78.0\/24; localhost; };\n allow-transfer { 192.168.78.0\/24; };/' \ -e '$azone "racattack" {\n type master;\n file "racattack";\n};\n\nzone "in-addr.arpa" {\n type master;\n file "in-addr.arpa";\n};' \ /etc/named.conf
- In bold the lines that have been modified from the default.
options { listen-on port 53 { 192.168.78.51; }; 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"; allow-query { 192.168.78.0/24; localhost; }; allow-transfer { 192.168.78.0/24; }; 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"; }; include "/etc/named.rfc1912.zones"; include "/etc/named.root.key"; zone "racattack" { type master; file "racattack"; }; zone "in-addr.arpa" { type master; file "in-addr.arpa"; };