DNS Server Configuration Steps For 11gR2 RAC On RHEL

Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

11/2/21, 9:54 AM DNS Server configuration steps for 11gR2 RAC on RHEL

Find Copy Paste

DNS Server configuration steps


Blog for 11gR2
QnA About RAC Contact
Resume on
RHEL !!!
Home »  LINUX »  DNS Server configuration steps for 11gR2 RAC on RHEL !!!

DNS Server configuration steps for 11gR2 RAC on


RHEL !!!
On May 9, 2012, Posted by TJ, In LINUX, By dns for 11g rac,dns server,scan ip dns configuration , With No Comments

DNS (Domain Name System) –

The Domain Name System (DNS) is a hierarchical distributed naming system for computers, services,
or any resource connected to the Internet or a private network. It associates various information with
domain names assigned to each of the participating entities.

A Domain Name Service translates queries for domain names (which are easier to understand and
utilize when accessing the internet) into IP addresses for the purpose of locating computer services
and devices worldwide.

DNS provides 11gR2 RAC with the capability of Configuring multiple SCAN IP’s. Also DNS along with
GNS (Grid Naming Service) simplifies the administration of Nodes. Oracle 11gR2 RAC supports a
maximum of 3 SCAN IP’s.

====================================================================================
==================

In this article, I will configure DNS Server for 11gR2 SCAN IP that is required in 11gR2 RAC cluster
configuration. If you use /etc/hosts file then only one IP will be taken for configuration and hence a DNS is
required for resolving all the SCAN IP’s.
We will configure 3 SCAN IPs as below,

1 SCAN Name     :       scan-ip.homedns.com


2 SCAN IP       :       192.168.0.12
3 SCAN IP       :       192.168.0.13
4 SCAN IP       :       192.168.0.14

====================================================================================
==================

file:///D:/DATA KERJA/Oracle/Oracle Databases/11g/Golden Gate/DNS Server configuration steps for 11gR2 RAC on RHEL.html 1/7
11/2/21, 9:54 AM DNS Server configuration steps for 11gR2 RAC on RHEL

  Find Copy Paste

• Install required RPMs Blog QnA About Resume Contact

– bind

– bind-libs

– bind-utils

Now copy all the files under /usr/share/doc/bind-9.3.6/sample/etc to /etc

Also copy all the files under /usr/share/doc/bind-9.3.6/sample/var to /var

# cp /usr/share/doc/bind-9.3.6/sample/etc/* /etc/

# cp -r /usr/share/doc/bind-9.3.6/sample/var/named /var

• Generate the DNS key

# dns-keygen

76VVOEPvQRbO0jIIY6FZhaHOiaWpF7QdByEpkY0Bis3UT0uHRbMpBqjgsLPp

Add the DNS key to the /etc/named.conf file in the below section,

1 key ddns_key
2 {
3                algorithm hmac-md5;
4                secret "76VVOEPvQRbO0jIIY6FZhaHOiaWpF7QdByEpkY0Bis3UT0uHRbMpBqjgsLPp";
5 };

• Add the below line in the /etc/named.conf file in the “view internal” section

1 zone "homedns.com" IN {
2        type master;
3        file "homedns.com.zone";
4        allow-update { none; };
5 };

Here homedns is the domain name.

• Create a zone file

# cd /var/named/

# cp localdomain.zone homedns.com.zone

Add the below entries to the zone file /var/named/homedns.com.zone and /var/named/localdomain.zone file.
file:///D:/DATA KERJA/Oracle/Oracle Databases/11g/Golden Gate/DNS Server configuration steps for 11gR2 RAC on RHEL.html 2/7
11/2/21, 9:54 AM DNS Server configuration steps for 11gR2 RAC on RHEL
1 scan-ip                 IN A                       192.168.0.12
Find Copy Paste
2 scan-ip                 IN A                       192.168.0.13
3 scan-ip                 IN A                       192.168.0.14
Blog QnA About Resume Contact
 

• Configure a reverse proxy

To identify the SCAN name from any of the IPS’s we need to configure a reverse proxy.

Add the below entry to /etc/named.conf file in the “view internal” section.

1 zone "0.168.192.in-addr.arpa." IN {
2        type master;
3        file "0.168.192.in-addr.arpa";
4        allow-update { none; };
5 };

Here my SCAN IP is in the subnet 192.168.0, so my entry looks like this.

• Create the reverse proxy file

# cd /var/named

1 # vi 0.168.192.in-addr.arpa
2 $ORIGIN 0.168.192.in-addr.arpa.
3 $TTL 1H
4 @ IN SOA homedns.com. root.homedns.com. ( 2
5 3H
6 1H
7 1W
8 1H )
9 0.168.192.in-addr.arpa. IN NS homedns.com.
10 12 IN PTR scan-ip.homedns.com.
11 13 IN PTR scan-ip.homedns.com.
12 14 IN PTR scan-ip.homedns.com.

• Start the named service

# chkconfig named on

# service named stop

# service named start

• Configure resolv.conf file on RAC nodes

On all the nodes, edit the /etc/resolv.conf and put your domain name and the DNS server name.
file:///D:/DATA KERJA/Oracle/Oracle Databases/11g/Golden Gate/DNS Server configuration steps for 11gR2 RAC on RHEL.html 3/7
11/2/21, 9:54 AM DNS Server configuration steps for 11gR2 RAC on RHEL

# viFind
/etc/resolv.conf

Copy Paste
search homedns.com

nameserver 192.168.0.11 Blog QnA About Resume Contact

Edit the /etc/nsswitch.conf file and add/edit the below entry.

hosts: dns files nis

[Save and Quit]

Now try to do a nslookup of the SCAN name on all nodes and check if it gets resolved.

1 # nslookup scan-ip
2 [It should show below output]
3 Server: 192.168.0.11
4 Address: 192.168.0.11#53
5  
6 Name: scan-ip.homedns.com
7 Address: 192.168.0.13
8 Name: scan-ip.homedns.com
9 Address: 192.168.0.14
10 Name: scan-ip.homedns.com
11 Address: 192.168.0.12

You can see from above output that the scan name is resolving all the 3 IP’s.

Now you can configure SCAN listener in RAC.

====================================================================================
==================

← Oracle 10g ASM Installation Steps in RHEL !!! Dataguard configuration using Active Database feature
!!! →

Leave a Reply
Your email address will not be published. Required fields are marked *

Name *

Email *

Website

Comment

file:///D:/DATA KERJA/Oracle/Oracle Databases/11g/Golden Gate/DNS Server configuration steps for 11gR2 RAC on RHEL.html 4/7
11/2/21, 9:54 AM DNS Server configuration steps for 11gR2 RAC on RHEL

Find Copy Paste

Blog QnA About Resume Contact

Post Comment

Confir Confir
m you m you
are NOT a spammer are NOT a spammer

Search.. Search

Categories
10g

11g

12c Cloud Control

LINUX

ORACLE

Others

Recent Posts
Install Oracle Multimedia component in 12c database !!!

Silent Database creation using DBCA !!!

Convert the upgraded 12c database to PDB !!!

Upgrade Oracle Database 11203 to 12102 !!!

Oracle Golden Gate with Source and Target databases in same server !!!

Popular Questions
What is Cache Fusion in Oracle RAC?
asked by TJ

Explain types of SQL statements.


asked by TJ

file:///D:/DATA KERJA/Oracle/Oracle Databases/11g/Golden Gate/DNS Server configuration steps for 11gR2 RAC on RHEL.html 5/7
11/2/21, 9:54 AM DNS Server configuration steps for 11gR2 RAC on RHEL

Latest Questions
Find Copy Paste

What is Cache Fusion in Oracle RAC? Blog QnA About Resume Contact
asked by TJ, 6 months ago

Explain types of SQL statements.


asked by TJ, 6 months ago

Archives

March 2016
January 2016
November 2015
October 2015
September 2015
March 2015
February 2015
December 2014
September 2014
July 2014
October 2013
September 2013
June 2013
February 2013
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
January 2012

Tags

file:///D:/DATA KERJA/Oracle/Oracle Databases/11g/Golden Gate/DNS Server configuration steps for 11gR2 RAC on RHEL.html 6/7
11/2/21, 9:54 AM DNS Server configuration steps for 11gR2 RAC on RHEL

Find
10 ASMCopy Paste to 11gR2
RAC upgrade
10g in linux steps
10g installation steps
10g rac
10g rac configuration steps

10g rac hostname change


Blog QnA About Resume

10g rac in linux
10g rac new node
11gr2 asm
11gr2 database installation steps

Contact

11gr2 database using grid infrastructure


11gR2 dataguard
11g R2 RAC installation steps
11gr2 snapshot standby

11g RAC
add new node in 10g rac
asm in 10g
asm installation steps in 10g
bonding
bonding in linux

change cluster hostnames


change existing hostnames
change hostname in rac cluster
convert SE to EE

convert single instance 11gr2 to RAC


convert single instance to rac db
create database

dataguard configuration steps in 11g


Dataguard configuration using RMAN
dataguard snapshot standby

delete a node in 11gR2


delete node
dns for 11g rac
dns server
em 12c cloud control
enterprise edition rac

ethernet bonding
iscsi disks
iSCSI disks using NetApp 8.1
iscsi using openfiler
kickstart configuration in liinux

kickstart dvd in rhel


standby database
upgrade 10g database
upgrade database

The information in this weblog is provided "AS IS" with no warranties, and confers no rights. This weblog does
not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion. Inappropriate
comments will be deleted at the authors discretion. All code samples are provided "AS IS" without warranty of
any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or
fitness for a particular

file:///D:/DATA KERJA/Oracle/Oracle Databases/11g/Golden Gate/DNS Server configuration steps for 11gR2 RAC on RHEL.html 7/7

You might also like