注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

mmicky 的博客

追逐刹那的惊艳

 
 
 

日志

 
 

RAC SCAN的DNS配置  

2013-06-09 19:04:01|  分类: ORACLE |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
参考:
笔者测试环境:
win2008 :192.168.100.111
RAC:(安装在vmware 上)
node1:192.168.100.191
node2:192.168.100.192
node1-vip:192.168.100.181
node2-vip:192.168.100.182
node1-priv:10.0.0.191
node2-priv:10.0.0.192
node-cluster-scan:192.168.100.201
node-cluster-scan:192.168.100.202
node-cluster-scan:192.168.100.203

配置DNS前先编辑RAC所有节点/etc/hosts的cluster-scan配置,取消其IP配置。
DNS两种解决方案:
一:win2008安装DNS,配置如下图:
RAC SCAN的DNS配置 - mmicky - mmicky 的博客
 
RAC SCAN的DNS配置 - mmicky - mmicky 的博客

二:直接在node1中添加DNS服务
1:在node1中安装软件包:#yum install bind_libs bind bind-utils
2:编辑/etc/named.conf
//
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//

options {
    listen-on port 53 { 127.0.0.1; 192.168.100.191; };
    listen-on-v6 port 53 { ::1; };
    directory     "/var/named";
    dump-file     "/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
        memstatistics-file "/var/named/data/named_mem_stats.txt";
    allow-query     { any; };
    recursion yes;

    dnssec-enable yes;
    dnssec-validation yes;
    dnssec-lookaside auto;

    /* Path to ISC DLV key */
    bindkeys-file "/etc/named.iscdlv.key";

    managed-keys-directory "/var/named/dynamic";
    forwarders { 202.101.172.35; };
};

logging {
        channel default_debug {
                file "data/named.run";
                severity dynamic;
        };
};

zone "." IN {
    type hint;
    file "named.ca";
};

zone "waihai." IN {
    type master;
    file "waihai.zone";  
};


zone "100.168.192.in-addr.arpa." IN {
    type master;
    file "100.168.192.zone";  
};


include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";

3:增加/var/named/waihai.zone
$TTL    86400
@               IN SOA  localhost root.localhost (
                                        42              ; serial (d. adams)
                                        3H              ; refresh
                                        15M             ; retry
                                        1W              ; expiry
                                        1D )            ; minimum
                IN NS           localhost
localhost       IN A            127.0.0.1
node1           IN A    192.168.100.191
node2           IN A    192.168.100.192
node1-priv      IN A    10.0.0.191
node2-priv      IN A    10.0.0.192
node1-vip       IN A    192.168.100.181
node2-vip       IN A    192.168.100.182
rac-scan        IN A    192.168.100.201
rac-scan        IN A    192.168.100.202
rac-scan        IN A    192.168.100.203

4:增加/var/named/100.168.192.zone
$ORIGIN 100.168.192.in-addr.arpa.
$TTL 1H
@       IN      SOA     node1.waihai.     root.node1.waihai. (      2
                                                3H
                                                1H
                                                1W
                                                1H )
100.168.192.in-addr.arpa.         IN NS      node1.waihai.

191     IN PTR  node1.waihai.
192     IN PTR  node2.waihai.
181     IN PTR  node1-vip.waihai.
182     IN PTR  node2-vip.waihai.
201     IN PTR  rac-scan.waihai.
202     IN PTR  rac-scan.waihai.
203     IN PTR  rac-scan.waihai.

5:重启named服务
/etc/init.d/named restart 或 service named restart,并设置开机启动服务 chkconfig named on

6:无论是win2008中设置DNS还是node1中设置DNS,都需要将节点的DNS指向DNS服务器的IP地址,还有在所有节点中用nslookup 测试一下。
  评论这张
 
阅读(323)| 评论(0)
推荐 转载

历史上的今天

在LOFTER的更多文章

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017