Linux: How To Configure The DNS Server For 11gR2 SCAN (ID 1107295.1)
Linux: How To Configure The DNS Server For 11gR2 SCAN (ID 1107295.1)
Linux: How To Configure The DNS Server For 11gR2 SCAN (ID 1107295.1)
Linux: How to Configure the DNS Server for 11gR2 SCAN [ID 1107295.1]
Modified: Feb 17, 2012 Type: HOWTO Status: PUBLISHED Priority: 3
In this Document
Goal
Solution
References
Applies to:
Oracle Server - Enterprise Edition - Version: 11.2.0.1 to 11.2.0.3 - Release: 11.2 to 11.2
Generic Linux
The commands listed in this Note tested at Red Hat Enterprise Server 5 Update 2. For the other Linux enviroments it should be similar.
Goal
This note explains how to configure the DNS to accommodate SCAN-VIP. In most cases this task is carried out by the Network Administrator,
but awareness of these steps can be very useful for assisting your network administrator in configuring DNS properly for SCAN and/or
provide the ability to configure DNS in a sandbox enviroment.
If there is no separate DNS Server box available for your test case, you can have one of the cluster nodes (example: rac1 or rac2) also
acting as the DNS server. Note, however, that using one of your cluster nodes as your DNS server is not supported in production.
This note will demonstrate how to prepare the SCAN-IP on a Linux DNS Server
For the purpose of this note, we will not involve GNS (see Note:946452.1 for how to configure GNS).
The three nodes involved in this case are: rac1, rac2, and dns1. The domain is: testenv.com
Solution
You can obtain an account from the Yum Server which will install the package for you automatically.
OR
And use the rpm command to do the DNS Server installation (For example)
1 of 4 6/7/2012 12:40 AM
Document Display https://supporthtml.oracle.com/epmos/faces/ui/km/SearchDocDisplay.j...
a. Configure the "forwarder" under "options" in "/etc/named.conf " (If you do not have another DNS or Router that can resolve names for
you, skip this step) :
options {
.
.
// Forwarder: Anything this DNS can't resolve gets forwarded to other DNS.
forwarders { 10.10.1.1; }; // This is the IP for another DNS/Router
};
zone "testenv.com" IN {
type master;
file "testenv.com.zone";
allow-update { none; };
};
The "file" parameter specifies the name of the file in the "/var/named/" directory that contains the configuration for this zone.
zone "2.168.192.in-addr.arpa." IN {
type master;
file "2.168.192.in-addr.arpa";
allow-update { none; };
};
rac1-vip IN A 192.168.2.221
rac2-vip IN A 192.168.2.222
rac-scan IN A 192.168.2.11
rac-scan IN A 192.168.2.12
rac-scan IN A 192.168.2.13
Put all the private IPs, VIP and SCAN VIPs in the DNS config file. If you only want the DNS to resolve the scan-vip, only include the rac-scan
with its three corresponding IP addresses in the file. Also if you only need one SCAN IP, you can put only one entry in the file.
$ORIGIN 2.168.192.in-addr.arpa.
$TTL 1H
3H
1H
1W
1H )
2.168.192.in-addr.arpa. IN NS testenv.com.
2 of 4 6/7/2012 12:40 AM
Document Display https://supporthtml.oracle.com/epmos/faces/ui/km/SearchDocDisplay.j...
11 IN PTR rac-scan.testenv.com.
12 IN PTR rac-scan.testenv.com.
13 IN PTR rac-scan.testenv.com.
4. On dns1.testenv.com : stop/start DNS Server to ensure it can be successfully restarted and make sure the DNS Server will be started
automatically:
The DNS Server configuration has been completed, next we need to point our RAC nodes to use this DNS server for name resolution.
nameserver 17.17.0.35
search localdomain testenv.com
It should point to the DNS Server Address. In this case nameserver has been set to the IP address of dns1. If the node itself is also acting
as the DNS Server it should point to its own IP address.
At this point the configuration is complete. We should be able to test the forward and reverse lookups using the "nslookup"
command.
# nslookup rac-scan.testenv.com
Server: 17.17.0.35
Address: 17.17.0.35#53
Name: rac-scan.testenv.com
Address: 192.168.2.11
Name: rac-scan.testenv.com
Address: 192.168.2.12
Name: rac-scan.testenv.com
Address: 192.168.2.13
# nslookup 192.168.2.11
Server: 17.17.0.35
Address: 17.17.0.35#53
# nslookup 192.168.2.12
Server: 17.17.0.35
Address: 17.17.0.35#53
# nslookup 192.168.2.13
Server: 17.17.0.35
Address: 17.17.0.35#53
If we try to ping rac-scan.testenv.com at this moment you will find it will display one of our SCAN ip addresses but it will not be able to be
reached. This is correct behavior.
Once the GI software has been installed and is running it will bring these IP addresses online and at that point the SCAN should be
resolvable.
3 of 4 6/7/2012 12:40 AM
Document Display https://supporthtml.oracle.com/epmos/faces/ui/km/SearchDocDisplay.j...
References
NOTE:811293.1 - RAC Assurance Support Team: RAC Starter Kit and Best Practices (AIX)
NOTE:887522.1 - 11gR2 Grid Infrastructure Single Client Access Name (SCAN) Explained
NOTE:946452.1 - DNS and DHCP Setup Example for Grid Infrastructure GNS
4 of 4 6/7/2012 12:40 AM