Monday, 5 February 2018

Install and configure DNS for Oracle RAC


Environment:
OS: CentOS 6.9
Memory: 512M
HDD: 20G

Install required packages.
yum install bind bind-utils


Modify /etc/named.conf and add modify followings
listen-on port 53 { 127.0.0.1; 192.168.100.53; };
allow-query     { localhost; 192.168.100.0/24; };
forwarders { 192.168.100.1; };



Add following zone configuration at the end of named.conf file.
zone "localdomain." IN {
                type master;
                file "localdomain.zone";
                allow-update { none; };
        };



Create file /var/named/localdomain.zone and add following entries
$TTL 86400
@   IN  SOA     dns.localdomain (
        2018020301  
        3600       
        1800      
        604800   
        86400   
        86400   
)
; Specify our two nameservers
IN NS dns

; Resolve nameserver hostnames to IP, replace with your two droplet IP addresses.
dns IN A 192.168.100.53
rac01 IN A 192.168.100.101
rac02 IN A 192.168.100.102
rac01-priv IN A 192.168.1.101
rac02-priv IN A 192.168.1.102
rac01-vip IN A 192.168.100.201
rac02-vip IN A 192.168.100.202
rac-scan IN A 192.168.100.203
rac-scan IN A 192.168.100.204
rac-scan IN A 192.168.100.205



Start named process to start dns.
/etc/init.d/named restart







Harry

Author & Editor

A technology enthusiast and addictive blogger who likes to hacking tricks and wish to be the best White Hacket Hacker of the World.

0 comments:

Post a Comment

Note: only a member of this blog may post a comment.