Вы находитесь на странице: 1из 5

Configuring a private DNS server on Openfiler for use with Oracle RAC 12C on Virtual Boxes - AMIS Technology

Blog

TRENDING

SOA Suite 12c: Exploring Dependencies Visualizing dependencies b

4/7/14 11:02 pm

"

Search...

&

AMIS TECHNOLOGY BLOG


HOME

BLOG LIST

YOU ARE AT:

Home

AMIS

JOIN OUR TEAM

AMIS EVENTS

ABOUT

CONTACT US

Configuring a private DNS server on Openfiler for use with Oracle RAC 12C on Virtual Boxes

EVENTS

RECENT
'0

JUNE 27, 2014

11 september Oracle OpenWorld


Preview sessie 2014

'0

JUNE 27, 2014

14 augustus Sessie ADF Data


Visualisatie met Katarina Obradovic

'2

JUNE 25, 2014

17 juli Launch event SOA Suite 12c


& BPM Suite 12c

Configuring a private DNS server on Openfiler for use with Oracle


RAC 12C on Virtual Boxes
BY JOB OPREL ON DECEMBER 30, 2013

'0

MAY 26, 2014

'0

ADF FIFA 2014 World Cup Challenge

'0

MAY 14, 2014

AMIS, DATABASE, DBA, IT ARCHITECTURE, ORACLE, ORACLE 12, VIRTUALIZATION

Donderdagavond 22 mei het ADF


community evenement met Oracle

To build an Oracle 12C RAC database on Virtual Boxes theres at least shared storage needed for ASM, and a DNS-

product managers, ADF 12.1.3 en de

server for the SCAN-addresses. Several methods can be used for this, but for the storage in my private project I chose

ADF World Cup Challenge

Openfiler, an open source management storage tool, on a separate Virtual Box. Its like a SAN in real life (the complete
system will be three Virtual Boxes: two RAC-nodes and 1 storage Virtual Box). Version Openfiler: 2.99.
AMIS
O.k. storage is clear, but what about DNS? The quickest and dirtiest way to accomplish this is to use Dnsmasq on every RAC-node.

Like

A nice blogpost about this subject is here to be found.


173 people like AMIS.

But what I want is a separate DNS-server, just as in real life. The perfect candidate is to use the separate Openfiler Virtual Box.
Agreed, a bit more complicated to setup, but I just have to do it once. I used a nice blogpost about DHCP and DNS setup in the
past as my starting point. In this post I will describe the various steps to take to get your own DNS-server on Openfiler, with the
complete content of the files I used. The installation of openfiler will be described in another post. So the assumption here is that the
openfiler-virtual box is running and accessible.
Facebook social plugin

873

Follow

TAGS

First the DNS-package has to be installed on Openfiler (internet access needed):

11g

11gr2

adf bc
Agile

cloud

adf dvt

apex

adf adf 11g

12c

ADF expertise

BPEL

customization

visualization

dvt

bpm

Database

fmw 12c

http://technology.amis.nl/2013/12/30/configuring-a-private-dns-server-on-openfiler-for-use-with-oracle-rac-12c-on-virtual-boxes/

adf faces

business rule

data

fusion

Page 1 of 5

Configuring a private DNS server on Openfiler for use with Oracle RAC 12C on Virtual Boxes - AMIS Technology Blog

4/7/14 11:02 pm

Java

middleware

jsf

jdeveloper 11g

suite

sql

For the RAC-nodes I needed the ip-range 192.168.188.xxx as public, and 192.168.190.xxx as private addresses.

XML

Just a few files to be configured to accomplish this:

- /etc/named.conf which point to the other files:

maven

Oracle

OOW 2012
wizard

jdeveloper
Mobile

oow

Oracle

oracle open world

plsql push soa soa


soa suite 11g soa suite 12c
osb

WebCenter

weblogic

web service

xmldb

RECENT COMMENTS

|> /srv/named/data/<domain-name-host-file> , in this case srv/named/data/amis.nl.hosts.

amir on 10 tips for ADF Application (Module Pool) tuning


Anton Scheffer on Generating a PDF-document with
some plsql: as_pdf_mini => as_pdf3

|> /srv/named/data/<reversed-files>

Hereby the content of these files.

ultan (@ultan) on Google Glass and Wearable Devices.


Always Context Aware AMIS Vision

/etc/named.conf:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42

//
//,named.conf,for,Red,Hat,caching=nameserver
//
,
options,{
directory,"/srv/named/data";
dump=file,"/srv/named/data/cache_dump.db";
statistics=file,"/srv/named/data/named_stats.txt";
/*
*,If,there,is,a,firewall,between,you,and,nameservers,you,want
*,to,talk,to,,you,might,need,to,uncomment,the,query=source
*,directive,below.,,Previous,versions,of,BIND,always,asked
*,questions,using,port,53,,but,BIND,8.1,uses,an,unprivileged
*,port,by,default.
*/
//,query=source,address,*,port,53;
};
,
//,a,caching,only,nameserver,config
//
controls,{
inet,127.0.0.1,allow,{,localhost;,},keys,{,rndckey;,};
};
,
zone,"amis.nl",{
type,master;
file,"amis.nl.hosts";
};
,
#,reverse,zone
,
zone,"188.168.192.in=addr.arpa",{
type,master;
file,"188.168.192.rev";
};
,
zone,"190.168.192.in=addr.arpa",{
type,master;
file,"190.168.192.rev";
};
,
include,"/etc/rndc.key";

Valerio on Generating a PDF-document with some plsql:


as_pdf_mini => as_pdf3
ccscoder on Turning any XML document into a Java
Object graph using JAXB 2.0

FOLLOW US ON TWITTER

Tweets

Follow

Simone Geib @SOASimone


7h
Recommended read RT @dainsworld:
White Paper: Oracle SOA Suite 12c - A
Detailed Look lnkd.in/d_XXCMq
Retweeted by AMIS, Oracle & Java
Expand

Andre van Dalen @Andre_van_Dalen 22h


Motivatie, coperatie, inspiratie alles
of niets wp.me/p4Msur-F
Retweeted by AMIS, Oracle & Java
Show Summary

Lucas Jellema @lucasjellema


2 Jul
Working with @pavadeli on OTN article
"Marrying "together HTML5 (Angular)
and ADF". Having fun with World Cup
Football statistics in the mix
Retweeted by AMIS, Oracle & Java
Expand

/srv/named/data/<domain-name-host-file> , in my case amis.nl.hosts.


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

$TTL,86400,,;,1,day
@,IN,SOA,Openfiler2.amis.nl.,,foo.bar.tld.,(
200612069,;,serial
7200,;,refresh,(2,hours)
300,;,retry,(5,minutes)
604800,;,expire,(1,week)
60,;,minimum,(1,minute)
)
@,IN,NS,,Openfiler2.amis.nl.
Openfiler2.amis.nl.,,,,,,,,IN,,,A,,,192.168.188.195
rac1=ol6=121.amis.nl.,,,,,,IN,,,A,,,192.168.188.100
rac2=ol6=121.amis.nl.,,,,,,IN,,,A,,,192.168.188.110
rac1=ol6=121=vip.amis.nl.,,IN,,,A,,,192.168.188.150
rac2=ol6=121=vip.amis.nl.,,IN,,,A,,,192.168.188.160
ol6=121=scan.amis.nl.,,,,,,IN,,,A,,,192.168.188.210
ol6=121=scan.amis.nl.,,,,,,IN,,,A,,,192.168.188.220
ol6=121=scan.amis.nl.,,,,,,IN,,,A,,,192.168.188.230
rac1=ol6=121=priv.amis.nl.,IN,,,A,,,192.168.190.200
rac2=ol6=121=priv.amis.nl.,IN,,,A,,,192.168.190.250
,
,,

AngularJS News

30 Jun

@AngularJS_News

Mobile & Offline Data Synchronization


in AngularJS > buff.ly/TF2KDX
Retweeted by AMIS, Oracle & Java
Expand

Puppet Labs @puppetlabs


The 5 ways #ContinuousDelivery
reduces stress, by @aparker42:
bit.ly/UI0NY7

1 Jul

Retweeted by AMIS, Oracle & Java


Expand

Tweet to @AMIS_Services

Then the two reversed files, named in /etc/named.conf:

First the 188.168.192.in-addr.arpa file:

AMIS STAFF BLOGS

http://technology.amis.nl/2013/12/30/configuring-a-private-dns-server-on-openfiler-for-use-with-oracle-rac-12c-on-virtual-boxes/

Page 2 of 5

Configuring a private DNS server on Openfiler for use with Oracle RAC 12C on Virtual Boxes - AMIS Technology Blog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

@,IN,SOA,Openfiler2.amis.nl,admin.amis.nl.,(
200612069,;,serial
7200,;,refresh,(2,hours)
300,;,retry,(5,minutes)
604800,;,expire,(1,week)
60,;,minimum,(1,minute)
)
,
188.168.192.in=addr.arpa.,IN,,NS,,Openfiler2.amis.nl.
,
195,,,,PTR,Openfiler2.amis.nl.
,
100,,,,PTR,rac1=ol6=121.amis.nl.
110,,,,PTR,rac2=ol6=121.amis.nl.
,
150,,,,PTR,rac1=ol6=121=vip.amis.nl.
160,,,,PTR,rac2=ol6=121=vip.amis.nl.
,
210,,,,PTR,ol6=121=scan.amis.nl.
220,,,,PTR,ol6=121=scan.amis.nl.
230,,,,PTR,ol6=121=scan.amis.nl.
,
,,

4/7/14 11:02 pm

ADF Plus (Paco van der Linden)


Arkhitekton Oracle Blog (Diana Veerman)
Bar Solutions WebLog (Patrick Barel)
Java / Oracle SOA blog (Edwin Biemond)
Jobacle (Job Oprel)
Jornica (Jorrit Nijssen)
Luc Bors
Oracle SOA / Java blog (Maarten Smeets)
SE Stuff and the like (Chris Gralike)
SOA, IoT and Beyond (Robert van Mlken)

Then the 190.168.192.in-addr.arpa file:


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

$TTL,86400,,;,1,day
@,IN,SOA,Openfiler2.,admin.amis.nl.,(
200612069,;,serial
7200,;,refresh,(2,hours)
300,;,retry,(5,minutes)
604800,;,expire,(1,week)
60,;,minimum,(1,minute)
)
,
190.168.192.in=addr.arpa.,IN,,NS,,Openfiler2.amis.nl.
,
200,PTR,rac1=ol6=121=priv.amis.nl.
250,PTR,rac2=ol6=121=priv.amis.nl.
,
,,

FRIENDS OF AMIS
Mastering Architecture (Mike van Alst)
Notes on Oracle (Alex Nuijten)
Olrichs Blog (Richard Olrichs)
Oracle DBMS related tidbits (Toon Koppelaars)
Oracle XMLDB (Marco Gralike)

Start the named server:

OraClever (Arnoud Roth)


Red Heap (Wilfred van der Deijl)

# service named start

Vennster (Ronald van Luttikhuizen & Lonneke Dikmans)

Should give o.k.

You may experience an error while stopping the service:

META
Register
Log in
Entries RSS
Comments RSS

You may ignore this error for the purpose of this blog. I did..

WordPress.org

Make sure the nameserver is started at boottime:

# chkconfig named on

# chkconfig named list

But is it working? To check this out, youll have to reconfigure your DNS-resolving on your own server. In my case the first node of
my cluster: rac1-ol6-121.

To make sure that all the hostnames can be resolved the file /etc/resolv.conf must be edited. Create this file with the following
entries:
1
2
3

search,amis.nl
,
nameserver,192.168.188.195

But you may experience that this will gets overwritten in OEL6. To overcome this youll have to edit the adapter-settings (eth0 / eth1) through the
GUI. Or, as Rob state in his blog, create the file /etc/dhclient-enter-hooks with the following content:
1

make_resolv_conf(),{echo,"doing,nothing,to,resolv.conf}

So lets test this (configured this in another domain, jobacle.nl, so the output of the nslookup is somewhat different than the
configuration above

):

http://technology.amis.nl/2013/12/30/configuring-a-private-dns-server-on-openfiler-for-use-with-oracle-rac-12c-on-virtual-boxes/

Page 3 of 5

Configuring a private DNS server on Openfiler for use with Oracle RAC 12C on Virtual Boxes - AMIS Technology Blog

4/7/14 11:02 pm

Openfiler-server (192.168.188.195) is default listening on port 53.

Sources:

Configuring DHCP and DNS on Openfiler 2.3: http://www.denbraber.org/?p=4

RAC-scan dns server setup: http://ora12c.blogspot.nl/2012/08/oracle-rac-scan-dns-server-setup.html

Using Dnsmasq: http://dbaora.com/configure-scan-dns-for-rac-11g-rac-12c-using-dnsmasq-in-oel5-oel6-2/

Related posts:

1. Virtual Private Database, securing your data


2. Poor man's VPD Virtual Private Database before 8i and in Standard Edition Databases
3. A short guide to networking in Virtual Box with Oracle Linux inside.
4. Configuring WebCenter 11g R1 PS3 with remote UCM Content Server
5. Installing Tomcat 7 and Configuring as Server in NetBeans

12c

DNS

dnsmasq

openfiler

SHARE.

Oracle

RAC

resolv.conf

scan

scan addresses

virtual box

"

ABOUT AUTHOR

JOB OPREL

RELATED POSTS

JULY 2, 2014

'1

Google Glass and Wearable


Devices.
Always Context Aware AMIS
Vision

JUNE 27, 2014

'0

11 september Oracle OpenWorld


Preview sessie 2014

JUNE 27, 2014

'0

14 augustus Sessie ADF Data


Visualisatie met Katarina
Obradovic

Leave a Reply
Enter your comment here...

http://technology.amis.nl/2013/12/30/configuring-a-private-dns-server-on-openfiler-for-use-with-oracle-rac-12c-on-virtual-boxes/

Page 4 of 5

Configuring a private DNS server on Openfiler for use with Oracle RAC 12C on Virtual Boxes - AMIS Technology Blog

SUBSCRIBE TO BLOG VIA EMAIL

ABOUT

Enter your email address to subscribe to this blog and

AMIS is internationally recognized for its deep

receive notifications of new posts by email.

technological insight in Oracle technology. This

4/7/14 11:02 pm

RECENT POSTS
'1

JULY 2, 2014

Google Glass and Wearable Devices.


Always Context Aware AMIS Vision

knowledge is reflected in the presentations we deliver at


Join 45 other subscribers

international conferences such as Oracle OpenWorld,


Hotsos and many user conferences around the world.

Email Address

Our AMIS Technology Blog, the most referred Oracle

'2

JULY 1, 2014

10 tips for ADF Application (Module


Pool) tuning

technology knowledge base outside the oracle.com


Subscribe

domain. However you arrived here, we appreciate your

JUNE 30, 2014

interest in AMIS. Link to our Google+ Profile AMIS

Hooking up JDeveloper 12.1.3 to a

'0

GitHub repository

'0

JUNE 30, 2014

SOA Suite 12c: Weekend Roundup

http://technology.amis.nl/2013/12/30/configuring-a-private-dns-server-on-openfiler-for-use-with-oracle-rac-12c-on-virtual-boxes/

Page 5 of 5

Вам также может понравиться