ORACLE RAC用DNS服务器的配置

一、搭建本地YUM源

二、安装DNS全部组建
yum -y install bind*

三、规划您RAC集群所有IP
#public
192.168.16.111 rac1.ntt.com rac1
192.168.16.112 rac2.ntt.com rac2
192.168.16.121 rac3.ntt.com rac3
192.168.16.122 rac4.ntt.com rac4
 
#private
10.10.10.111 rac1-priv.ntt.com rac1-priv
10.10.10.112 rac2-priv.ntt.com rac2-priv
10.10.10.121 rac3-priv.ntt.com rac3-priv
10.10.10.122 rac4-priv.ntt.com rac4-priv
#vip
192.168.16.113 rac1-vip.ntt.com rac1-vip
192.168.16.114 rac2-vip.ntt.com rac2-vip
192.168.16.123 rac3-vip.ntt.com rac3-vip
192.168.16.124 rac4-vip.ntt.com rac4-vip
 
#scan
192.168.16.115 rac11-scan.ntt.com rac11-scan
192.168.16.116 rac11-scan.ntt.com rac11-scan
192.168.16.117 rac11-scan.ntt.com rac11-scan
192.168.16.125 rac12-scan.ntt.com rac12-scan
192.168.16.126 rac12-scan.ntt.com rac12-scan
192.168.16.127 rac12-scan.ntt.com rac12-scan

#storge
192.168.16.188 storge.ntt.com storge

#database
192.168.16.100 hadoop.ntt.com hadoop

四、DNS配置文件

[root@oracle ~]# vi /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 { any; };   #默认监听IP是127.0.0.1,any或者注释掉就是允许所有IP
        listen-on-v6 port 53 { any; }; #ip6监听地址
        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; }; #只允许本地主机localhost,any或者注释掉就是允许所有主机查询 
        recursion yes; #是否开启迭代查询功能
 
        dnssec-enable yes;   
        dnssec-validation yes;
 
        /* Path to ISC DLV key */
        bindkeys-file "/etc/named.iscdlv.key";
 
        managed-keys-directory "/var/named/dynamic";
};
 
logging {     
        channel default_debug {
                file "data/named.run";
                severity dynamic;
        };
};
 
zone "." IN {
        type hint;
        file "named.ca";
        //file "/dev/null";
};
 
include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";

vim /etc/named.rfc1912.zones,

// named.rfc1912.zones:
//
// Provided by Red Hat caching-nameserver package
//
// ISC BIND named zone configuration for zones recommended by
// RFC 1912 section 4.1 : localhost TLDs and address zones
// and http://www.ietf.org/internet-drafts/draft-ietf-dnsop-default-local-zones-02.txt
// (c)2007 R W Franks
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
//配置正向解析Zone
zone "ntt.com" IN {
        type master;
        file "ntt.com.zone";
        allow-update { none; };
};
//注意,这个域名要和后面配置的一致
 
//配置反向解析Zone
zone "16.168.192.in-addr.arpa" IN {
        type master;
        file "16.168.192.local";
        allow-update { none; };
};


vi /var/named/ntt.com.zone

$TTL    86400
@      IN    SOA  dns.ntt.com.  root.ntt.com. (
                                        42              ; serial (d.adams)
                                         3H              ; refresh
                                        15M             ; retry
                                        1W              ; expiry
                                        1D)            ; minimum
 
           IN     NS       oracle.ntt.com.
dns        IN       A       192.168.16.166
rac11-scan   IN     A       192.168.16.115
rac11-scan   IN     A       192.168.16.116
rac11-scan   IN     A       192.168.16.117
rac12-scan   IN     A       192.168.16.125
rac12-scan   IN     A       192.168.16.126
rac12-scan   IN     A       192.168.16.127
rac1       IN     A       192.168.16.111
rac2       IN     A       192.168.16.112
rac3       IN     A       192.168.16.121
rac4       IN     A       192.168.16.122
rac1-vip       IN     A       192.168.16.113
rac2-vip       IN     A       192.168.16.114
rac3-vip       IN     A       192.168.16.123
rac4-vip       IN     A       192.168.16.124
storge         IN     A       192.168.16.188
hadoop         IN     A       192.168.16.100


vim /var/named/16.168.192.local

$TTL    86400
@      IN SOA  dns.ntt.com.      root.ntt.com. (
                                      1997022700 ; Serial
                                      28800      ; Refresh
                                      14400      ; Retry
                                      3600000    ; Expire
                                      86400)    ; Minimum
 
      IN      NS     dns.ntt.com.
115   IN      PTR    rac11-scan.ntt.com.
116   IN      PTR    rac11-scan.ntt.com.
117   IN      PTR    rac11-scan.ntt.com.
125   IN      PTR    rac12-scan.ntt.com.
126   IN      PTR    rac12-scan.ntt.com.
127   IN      PTR    rac12-scan.ntt.com.
111    IN      PTR    rac1.ntt.com
112    IN      PTR    rac2.ntt.com
121    IN      PTR    rac3.ntt.com
122    IN      PTR    rac4.ntt.com
113    IN      PTR    rac1-vip.ntt.com
114    IN      PTR    rac2-vip.ntt.com
123    IN      PTR    rac3-vip.ntt.com
124    IN      PTR    rac4-vip.ntt.com
188    IN      PTR    storge.ntt.com
100    IN      PTR    hadoop.ntt.com

[root@oracle ~]# chkconfig named on
[root@oracle ~]# service named restart


vi /etc/resolv.conf 

domain  ntt.com
nameserver 192.168.16.166
options rotate
options timeout:2
options attempts:5


五、测试结果:

[root@dns named]# nslookup 192.168.16.111
Server:         192.168.16.166
Address:        192.168.16.166#53

111.16.168.192.in-addr.arpa     name = rac1.ntt.com.16.168.192.in-addr.arpa.

[root@dns named]# nslookup 192.168.16.112
Server:         192.168.16.166
Address:        192.168.16.166#53

112.16.168.192.in-addr.arpa     name = rac2.ntt.com.16.168.192.in-addr.arpa.

[root@dns named]# nslookup 192.168.16.113
Server:         192.168.16.166
Address:        192.168.16.166#53

113.16.168.192.in-addr.arpa     name = rac1-vip.ntt.com.16.168.192.in-addr.arpa.

[root@dns named]# nslookup 192.168.16.114
Server:         192.168.16.166
Address:        192.168.16.166#53

114.16.168.192.in-addr.arpa     name = rac2-vip.ntt.com.16.168.192.in-addr.arpa.

[root@dns named]# nslookup 192.168.16.121
Server:         192.168.16.166
Address:        192.168.16.166#53

121.16.168.192.in-addr.arpa     name = rac3.ntt.com.16.168.192.in-addr.arpa.

[root@dns named]# nslookup 192.168.16.122
Server:         192.168.16.166
Address:        192.168.16.166#53

122.16.168.192.in-addr.arpa     name = rac4.ntt.com.16.168.192.in-addr.arpa.

[root@dns named]# nslookup 192.168.16.123
Server:         192.168.16.166
Address:        192.168.16.166#53

123.16.168.192.in-addr.arpa     name = rac3-vip.ntt.com.16.168.192.in-addr.arpa.

[root@dns named]# nslookup 192.168.16.124
Server:         192.168.16.166
Address:        192.168.16.166#53

124.16.168.192.in-addr.arpa     name = rac4-vip.ntt.com.16.168.192.in-addr.arpa.

[root@dns named]# nslookup 192.168.16.115
Server:         192.168.16.166
Address:        192.168.16.166#53

115.16.168.192.in-addr.arpa     name = rac11-scan.ntt.com.

[root@dns named]# nslookup 192.168.16.116
Server:         192.168.16.166
Address:        192.168.16.166#53

116.16.168.192.in-addr.arpa     name = rac11-scan.ntt.com.

[root@dns named]# nslookup 192.168.16.117
Server:         192.168.16.166
Address:        192.168.16.166#53

117.16.168.192.in-addr.arpa     name = rac11-scan.ntt.com.

[root@dns named]# nslookup 192.168.16.125
Server:         192.168.16.166
Address:        192.168.16.166#53

125.16.168.192.in-addr.arpa     name = rac12-scan.ntt.com.

[root@dns named]# nslookup 192.168.16.126
Server:         192.168.16.166
Address:        192.168.16.166#53

126.16.168.192.in-addr.arpa     name = rac12-scan.ntt.com.

[root@dns named]# nslookup 192.168.16.127
Server:         192.168.16.166
Address:        192.168.16.166#53

127.16.168.192.in-addr.arpa     name = rac12-scan.ntt.com.

[root@dns named]# nslookup dns
Server:         192.168.16.166
Address:        192.168.16.166#53

Name:   dns.ntt.com
Address: 192.168.16.166

[root@dns named]# nslookup dns.ntt.com
Server:         192.168.16.166
Address:        192.168.16.166#53

Name:   dns.ntt.com
Address: 192.168.16.166

[root@dns named]# nslookup rac1
Server:         192.168.16.166
Address:        192.168.16.166#53

Name:   rac1.ntt.com
Address: 192.168.16.111

[root@dns named]# nslookup rac2
Server:         192.168.16.166
Address:        192.168.16.166#53

Name:   rac2.ntt.com
Address: 192.168.16.112

[root@dns named]# nslookup rac3
Server:         192.168.16.166
Address:        192.168.16.166#53

Name:   rac3.ntt.com
Address: 192.168.16.121

[root@dns named]# nslookup rac4
Server:         192.168.16.166
Address:        192.168.16.166#53

Name:   rac4.ntt.com
Address: 192.168.16.122

[root@dns named]# nslookup rac1-vip
Server:         192.168.16.166
Address:        192.168.16.166#53

Name:   rac1-vip.ntt.com
Address: 192.168.16.113

[root@dns named]# nslookup rac2-vip
Server:         192.168.16.166
Address:        192.168.16.166#53

Name:   rac2-vip.ntt.com
Address: 192.168.16.114

[root@dns named]# nslookup rac3-vip
Server:         192.168.16.166
Address:        192.168.16.166#53

Name:   rac3-vip.ntt.com
Address: 192.168.16.123

[root@dns named]# nslookup rac4-vip
Server:         192.168.16.166
Address:        192.168.16.166#53

Name:   rac4-vip.ntt.com
Address: 192.168.16.124

[root@dns named]# nslookup rac11-scan
Server:         192.168.16.166
Address:        192.168.16.166#53

Name:   rac11-scan.ntt.com
Address: 192.168.16.117
Name:   rac11-scan.ntt.com
Address: 192.168.16.115
Name:   rac11-scan.ntt.com
Address: 192.168.16.116

[root@dns named]# nslookup rac12-scan
Server:         192.168.16.166
Address:        192.168.16.166#53

Name:   rac12-scan.ntt.com
Address: 192.168.16.125
Name:   rac12-scan.ntt.com
Address: 192.168.16.126
Name:   rac12-scan.ntt.com
Address: 192.168.16.127

[root@dns named]# nslookup rac1.ntt.com
Server:         192.168.16.166
Address:        192.168.16.166#53

Name:   rac1.ntt.com
Address: 192.168.16.111

[root@dns named]# nslookup rac1-vip.ntt.com
Server:         192.168.16.166
Address:        192.168.16.166#53

Name:   rac1-vip.ntt.com
Address: 192.168.16.113

[root@dns named]# nslookup rac2.ntt.com    
Server:         192.168.16.166
Address:        192.168.16.166#53

Name:   rac2.ntt.com
Address: 192.168.16.112

[root@dns named]# nslookup rac2-vip.ntt.com
Server:         192.168.16.166
Address:        192.168.16.166#53

Name:   rac2-vip.ntt.com
Address: 192.168.16.114

[root@dns named]# nslookup rac3.ntt.com    
Server:         192.168.16.166
Address:        192.168.16.166#53

Name:   rac3.ntt.com
Address: 192.168.16.121

[root@dns named]# nslookup rac3-vip.ntt.com
Server:         192.168.16.166
Address:        192.168.16.166#53

Name:   rac3-vip.ntt.com
Address: 192.168.16.123

[root@dns named]# nslookup rac4.ntt.com    
Server:         192.168.16.166
Address:        192.168.16.166#53

Name:   rac4.ntt.com
Address: 192.168.16.122

[root@dns named]# nslookup rac4-vip.ntt.com
Server:         192.168.16.166
Address:        192.168.16.166#53

Name:   rac4-vip.ntt.com
Address: 192.168.16.124

[root@dns named]# nslookup rac11-scan.ntt.com
Server:         192.168.16.166
Address:        192.168.16.166#53

Name:   rac11-scan.ntt.com
Address: 192.168.16.117
Name:   rac11-scan.ntt.com
Address: 192.168.16.115
Name:   rac11-scan.ntt.com
Address: 192.168.16.116

[root@dns named]# nslookup rac12-scan.ntt.com
Server:         192.168.16.166
Address:        192.168.16.166#53

Name:   rac12-scan.ntt.com
Address: 192.168.16.126
Name:   rac12-scan.ntt.com
Address: 192.168.16.127
Name:   rac12-scan.ntt.com
Address: 192.168.16.125

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.rhkb.cn/news/466951.html

如若内容造成侵权/违法违规/事实不符,请联系长河编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

中肿团队提出的“免疫三明治”(放疗+化疗+免疫治疗),成功登上柳叶刀肿瘤|顶刊精析·24-11-08

小罗碎碎念 该研究首次发现在同期放化疗基础上增加特瑞普利单抗(PD-1抗体)新辅助和辅助治疗显著提高了高危局部晚期鼻咽癌患者生存率。 如果大家看完这篇推送以后,有什么好的医工交叉点子,欢迎和我一起探讨!&#xff0…

Golang--协程和管道

1、概念 程序: 是为完成特定任务、用某种语言编写的一组指令的集合,是一段静态的代码。(程序是静态) 进程: 是程序的一次执行过程。正在运行的一个程序,进程作为资源分配的单位,在内存中会为每个进程分配不同的内存区域&#xff0…

动力商城-02 环境搭建

1.父工程必须满足&#xff1a;1.1删除src目录 1.2pom 2.依赖继承 //里面的依赖&#xff0c;后代无条件继承<dependencies></dependencies>//里面的依赖&#xff0c;后代想要继承&#xff0c;得自己声明需要使用&#xff0c;可以不写版本号&#xff0c;自动继承&l…

JavaWeb开发9

ResponseBody 类型&#xff1a;方法注解、类注解 位置&#xff1a;Controller方法上/类上 作用&#xff1a;将方法返回值直接响应&#xff0c;如果返回值类型是实体对象/集合&#xff0c;将会转换为JSON格式响应 说明&#xff1a;RestControllerControllerResponseBody; 统…

夜天之书 #103 开源嘉年华纪实

上周在北京参与了开源社主办的 2024 中国开源年会。其实相比于有点明显班味的“年会”&#xff0c;我的参会体验更像是经历了一场中国开源的年度嘉年华。这也是在会场和其他参会朋友交流时共同的体验&#xff1a;在开源社的 COSCon 活动上&#xff0c;能够最大限度地一次性见到…

06 Oracle性能优化秘籍:AWR、ASH、SQL trace与实时监控的实战指南

文章目录 Oracle性能优化秘籍&#xff1a;AWR、ASH、SQL trace与实时监控的实战指南一、AWR&#xff08;Automatic Workload Repository&#xff09;1.1 理论部分1.2 实践部分1.2.1 使用方式1.2.2 分析方式 二、ASH&#xff08;Active Session History&#xff09;2.1 理论部分…

JS实现,防抖节流 + 闭包

防抖&#xff08;Debounce&#xff09; 防抖是指短时间内大量触发同一事件&#xff0c;只会在最后一次事件完成后延迟执行一次函数。 防抖的典型应用场景是输入框的搜索建议功能&#xff0c;用户输入时不需要每次输入都去查询&#xff0c;而是在用户停止输入一段时间后才进行…

1.每日SQL----2024/11/7

题目&#xff1a; 计算用户次日留存率,即用户第二天继续登录的概率 表&#xff1a; iddevice_iddate121382024-05-03232142024-05-09332142024-06-15465432024-08-13523152024-08-13623152024-08-14723152024-08-15832142024-05-09932142024-08-151065432024-08-131123152024-…

WPF中如何简单的使用MvvmLight创建一个项目并进行 增删改查

目录 第一步&#xff1a;创建项目后下载如下两个NuGet程序包&#xff0c;然后删除删掉using Microsoft.Practices.ServiceLocation; 并且引入using CommonServiceLocator; 第二步&#xff1a;删除原来的XAML文件并创建如下的包结构然后创建一个在View文件夹中创建一个Main窗体 …

网页版五子棋——匹配模块(客户端开发)

前一篇文章&#xff1a;网页版五子棋——用户模块&#xff08;客户端开发&#xff09;-CSDN博客 目录 前言 一、前后端交互接口设计 二、游戏大厅页面 1.页面代码编写 2.前后端交互代码编写 3.测试获取用户信息功能 结尾 前言 前面文章介绍完了五子棋项目用户模块的代码…

elasticSearch 7.12.1 Docker 安装ik分词

一、下载 https://github.com/infinilabs/analysis-ik/releases/tag/v7.12.1 将文件解压&#xff0c;复制到docker挂载的目录 docker ps#重启docker docker restart f7ec58e91f1f 测试 GET _analyze?pretty {"analyzer": "ik_max_word","text&qu…

在JS中, 0 == [0] 吗

在不知道答案的情况下, 你觉得这段代码的输出是什么 我当时觉得是false, 结果我错了–^^– 那为什么输出是true呢 因为的隐式类型转换, 运算符会尝试将两个操作数转换为相同的类型&#xff0c;然后再进行比较。 在这个例子中&#xff0c;0 是一个数字&#xff0c;而 [0] 是…

【学习AI-相关路程-mnist手写数字分类-win-硬件:windows-自我学习AI-实验步骤-全连接神经网络(BPnetwork)-操作流程(3) 】

【学习AI-相关路程-mnist手写数字分类-win-硬件&#xff1a;windows-自我学习AI-实验步骤-全连接神经网络&#xff08;BPnetwork&#xff09;-操作流程&#xff08;3&#xff09; 】 1、前言2、前置学习&#xff08;1&#xff09;window和Linux中python寻找目录的方式。&#x…

RabbitMQ客户端应用开发实战

这一章节我们将快速完成RabbitMQ客户端基础功能的开发实战。 一、回顾RabbitMQ基础概念 这个RabbitMQ的核心组件&#xff0c;是进行应用开发的基础。 二、RabbitMQ基础编程模型 RabbitMQ提供了很多种主流编程语言的客户端支持。这里我们只分析Java语言的客户端。 上一章节提…

一文了解Android SELinux

在Android系统中&#xff0c;SELinux&#xff08;Security-Enhanced Linux&#xff09;是一个增强的安全机制&#xff0c;用于对系统进行强制访问控制&#xff08;Mandatory Access Control&#xff0c;MAC&#xff09;。它限制了应用程序和进程的访问权限&#xff0c;提供了更…

python画图|hist()函数深层体验

【1】引言 前述学习已经掌握hist()函数的基本运用技巧&#xff0c;可通过下述链接直达&#xff1a; python画图|hist()函数画直方图初探-CSDN博客 python画图|hist()函数画直方图进阶-CSDN博客 我们已经理解hist()函数本质上画的是概率分布图&#xff0c;相关知识属于数理统…

火狐浏览器同源策略禁止解决方案

前言 火狐浏览器同源策略禁止解决方案_同源策略禁止读取远程资源怎么办-CSDN博客 在使用Firefox火狐浏览器进行Web开发时&#xff0c;有时会遇到因为同源策略&#xff08;Same-Origin Policy&#xff09;导致的跨域请求被拦截的问题。例如&#xff0c;控制台可能会显示如下错…

计算机网络——TCP篇

TCP篇 基本认知 TCP和UDP的区别? TCP 和 UDP 可以使用同一个端口吗&#xff1f; 可以的 传输层中 TCP 和 UDP在内核中是两个完全独立的软件模块。可以根据协议字段来选择不同的模块来处理。 TCP 连接建立 TCP 三次握手过程是怎样的&#xff1f; 一次握手:客户端发送带有 …

解决ImportError: DLL load failed while importing _message: 找不到指定的程序。

C:\software\Anoconda\envs\yolov5_train\python.exe C:\Project\13_yolov5-master\train.py C:\software\Anoconda\envs\yolov5_train\lib\site-packages\torchvision\io\image.py:13: UserWarning: Failed to load image Python extension: [WinError 127] 找不到指定的程序…

AOSP沙盒android 11

这里介绍一下aosp装系统 什么是aosp AOSP&#xff08;Android Open Source Project&#xff09;是Android操作系统的开源版本。 它由Google主导&#xff0c;提供了Android的源代码和相关工具&#xff0c;供开发者使用和修改。 AOSP包含了Android的核心组件和API&#xff0c;使…