Eason

咸鱼咯

Oracle 11g rac SCAN功能DNS部分配置示例

很多人在安装Oracle11g RAC过程中对其中的SCAN的DNS配置部分感到困惑,本文详细记录了在11g版本的RAC环境下SCAN的DNS配置方案。

注意:本过程已在项目过程中的实际系统环境下验证

配置文件共有4个
1、正向解析文件—->db.cyszys.com
2、反向解析文件—->db.15.168.192
3、根服务器描述文件—->named.ca
4、Bind服务器配置文件—->named.conf

/etc/hosts 配置内容:

################db.cyszys.com#####################
192.168.15.101        ora01
192.168.15.102        ora02
192.168.15.201        ora01-vip
192.168.15.202        ora02-vip
192.168.1.101        ora01-priv
192.168.1.102        ora02-priv
################db.cyszys.com#####################

db.cyszys.com 文件配置:

################db.cyszys.com#####################
$ttl 38400
cyszys.com.   IN      SOA     cyszys.com.   root.cyszys.com.(
                        2012110303
                        10800
                        3600
                        604800
                        38400)
                IN      NS      ns1.cyszys.com
                IN      NS      ns2.cyszys.com
ns1             IN      A       192.168.15.13
ns2             IN      A       192.168.15.14
ora01           IN      A       192.168.15.101
ora02           IN      A       192.168.15.102
scan                IN      A       192.168.15.211
scan                IN      A       192.168.15.212
scan                IN      A       192.168.15.213
ora01-vip       IN      A       192.168.15.201
ora02-vip       IN      A       192.168.15.202
################db.cyszys.com#####################

db.15.168.192 文件配置:

################db.15.168.192#####################
$ttl 38400
15.168.192.in-addr.arpa.        IN      SOA     ns.cyszys.com. root.cyszys.com.(
                                2009050803
                                10800
                                3600
                                604800
                                38400)
                                        NS      ns1.cyszys.com.
                                        NS      ns2.cyszys.com.
13.15.168.192.in-addr.arpa.             PTR     ns1.cyszys.com.
14.15.168.192.in-addr.arpa.             PTR     ns2.cyszys.com.
101.15.168.192.in-addr.arpa.            PTR     ora01.cyszys.com.
102.15.168.192.in-addr.arpa.            PTR     ora02.cyszys.com.
211.15.168.192.in-addr.arpa.            PTR     scan.cyszys.com.
212.15.168.192.in-addr.arpa.            PTR     scan.cyszys.com.
213.15.168.192.in-addr.arpa.            PTR     scan.cyszys.com.
201.15.168.192.in-addr.arpa.            PTR     ora01-vip.cyszys.com.
202.15.168.192.in-addr.arpa.            PTR     ora02-vip.cyszys.com.
################db.15.168.192#####################

named.ca 文件配置:

################named.ca########################
;       This file holds the information on root name servers needed to
;       initialize cache of Internet domain name servers
;       (e.g. reference this file in the "cache  .  <file>"
;       configuration file of BIND domain name servers).
;
;       This file is made available by InterNIC 
;       under anonymous FTP as
;           file                /domain/named.root
;           on server           FTP.INTERNIC.NET
;       -OR-                    RS.INTERNIC.NET
;
;       last update:    Feb 04, 2008
;       related version of root zone:   2008020400
;
; formerly NS.INTERNIC.NET
;
.                        3600000  IN  NS    A.ROOT-SERVERS.NET.
A.ROOT-SERVERS.NET.      3600000      A     198.41.0.4
A.ROOT-SERVERS.NET.      3600000      AAAA  2001:503:BA3E::2:30
;
; formerly NS1.ISI.EDU
;
.                        3600000      NS    B.ROOT-SERVERS.NET.
B.ROOT-SERVERS.NET.      3600000      A     192.228.79.201
;
; formerly C.PSI.NET
;
.                        3600000      NS    C.ROOT-SERVERS.NET.
C.ROOT-SERVERS.NET.      3600000      A     192.33.4.12
;
; formerly TERP.UMD.EDU
;
.                        3600000      NS    D.ROOT-SERVERS.NET.
D.ROOT-SERVERS.NET.      3600000      A     128.8.10.90
;
; formerly NS.NASA.GOV
;
.                        3600000      NS    E.ROOT-SERVERS.NET.
E.ROOT-SERVERS.NET.      3600000      A     192.203.230.10
;
; formerly NS.ISC.ORG
;
.                        3600000      NS    F.ROOT-SERVERS.NET.
F.ROOT-SERVERS.NET.      3600000      A     192.5.5.241
F.ROOT-SERVERS.NET.      3600000      AAAA  2001:500:2f::f
;
; formerly NS.NIC.DDN.MIL
;
.                        3600000      NS    G.ROOT-SERVERS.NET.
G.ROOT-SERVERS.NET.      3600000      A     192.112.36.4
;
; formerly AOS.ARL.ARMY.MIL
;
.                        3600000      NS    H.ROOT-SERVERS.NET.
H.ROOT-SERVERS.NET.      3600000      A     128.63.2.53
H.ROOT-SERVERS.NET.      3600000      AAAA  2001:500:1::803f:235
;
; formerly NIC.NORDU.NET
;
.                        3600000      NS    I.ROOT-SERVERS.NET.
I.ROOT-SERVERS.NET.      3600000      A     192.36.148.17
;
; operated by VeriSign, Inc.
;
.                        3600000      NS    J.ROOT-SERVERS.NET.
J.ROOT-SERVERS.NET.      3600000      A     192.58.128.30
J.ROOT-SERVERS.NET.      3600000      AAAA  2001:503:C27::2:30
;
; operated by RIPE NCC
;
.                        3600000      NS    K.ROOT-SERVERS.NET.
K.ROOT-SERVERS.NET.      3600000      A     193.0.14.129 
K.ROOT-SERVERS.NET.      3600000      AAAA  2001:7fd::1
;
; operated by ICANN
;
.                        3600000      NS    L.ROOT-SERVERS.NET.
L.ROOT-SERVERS.NET.      3600000      A     199.7.83.42
;
; operated by WIDE
;
.                        3600000      NS    M.ROOT-SERVERS.NET.
M.ROOT-SERVERS.NET.      3600000      A     202.12.27.33
M.ROOT-SERVERS.NET.      3600000      AAAA  2001:dc3::35
; End of File
################named.ca########################

named.conf 文件配置:

################named.conf#######################

//
// named.conf for Red Hat caching-nameserver 
//

options {
        directory "/var/named";
        dump-file "/var/named/data/cache_dump.db";
        statistics-file "/var/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 "." IN {
        type hint;
        file "named.ca";
};

zone "cyszys.com" IN {
        type master;
        file "db.cyszys.com";
        allow-update { none; };
};

zone "15.168.192.in-addr.arpa" IN {
        type master;
        file "db.15.168.192";
        allow-update { none; };
};

include "/etc/rndc.key";

################named.conf#######################

 

, , , , ,

Comments are currently closed.