411 REFERENCE · Wikibooks
RAC Attack - Oracle Cluster Database at Home/RAC Attack 12c/Complete DNS Setup
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
Open a session on collabn2.
Stop the DNS service.
[root@collabn2 ~]# service named stop
Stopping named: . [ OK ]
Remove the actual DNS files.
[root@collabn2 ~]# rm -f /var/named/racattack /var/named/in-addr.arpa
Modify the file /etc/named.conf by using the following command:
COPY/PASTE from PDF file may not work !!! Go to the RAC Attack 12c web page and copy/paste from there
http://en.wikibooks.org/wiki/RAC_Attack_-_Oracle_Cluster_Database_at_Home/RAC_Attack_12c/Complete_DNS_Setup
sed -i -e 's/listen-on .*/listen-on port 53 { 192.168.78.52; };/' \
-e 's/type master;/type slave;\n masters {192.168.78.51; };/' \
/etc/named.conf
so that at the end it looks like this one:
options {
listen-on port 53 { 192.168.78.52; };
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 slave;
masters { 192.168.78.51; };
file "racattack";
};
zone "in-addr.arpa" {
type slave;
masters { 192.168.78.51; };
file "in-addr.arpa";
};
Start the named service.
[root@collabn2 ~]# service named start
Starting named: [ OK ]
Check that both the master on collabn1 and slave on collabn2 DNS servers are working.
Run all the following statements to verify the correct configuration of both DNS servers:
You may find that DNS doesn't work from one of the hosts. Please double check that you have stopped IPTABLES. Many folks did not and therefore faced issues at this stage
http://en.wikibooks.org/wiki/RAC_Attack_-_Oracle_Cluster_Database_at_Home/RAC_Attack_12c/Linux_Post_Installation_No_Internet
[root@collabn2 ~]# dig @collabn1 collabn1.racattack
[root@collabn2 ~]# dig @collabn1 collabn2.racattack
[root@collabn2 ~]# dig @collabn1 collabn1-vip.racattack
[root@collabn2 ~]# dig @collabn1 collabn2-vip.racattack
[root@collabn2 ~]# dig @collabn1 collabn1-priv.racattack
[root@collabn2 ~]# dig @collabn1 collabn2-priv.racattack
[root@collabn2 ~]# dig @collabn1 collabn-cluster-scan.racattack
[root@collabn2 ~]# dig @collabn2 collabn1.racattack
[root@collabn2 ~]# dig @collabn2 collabn2.racattack
[root@collabn2 ~]# dig @collabn2 collabn1-vip.racattack
[root@collabn2 ~]# dig @collabn2 collabn2-vip.racattack
[root@collabn2 ~]# dig @collabn2 collabn1-priv.racattack
[root@collabn2 ~]# dig @collabn2 collabn2-priv.racattack
[root@collabn2 ~]# dig @collabn2 collabn-cluster-scan.racattack
Configure Second Linux VM VNC Server Setup