首页 > 数据库 >【Oracle RAC Database】通过DNS实现SCAN VIP的域名解析

【Oracle RAC Database】通过DNS实现SCAN VIP的域名解析

时间:2023-08-18 13:31:44浏览次数:41  
标签:named gscaifu RAC Database com SCAN 192.168 cluster root

[root@node04 ~]# yum install -y bind
[root@node04 ~]# vim /etc/named.conf
options {
        listen-on port 53 { 192.168.1.104; };
        /* 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;
        forwarders { 221.179.155.161; 219.141.136.10; 202.106.196.115; };
        dnssec-enable no;
        dnssec-validation no;
        /* Path to ISC DLV key */
        bindkeys-file "/etc/named.iscdlv.key";
        managed-keys-directory "/var/named/dynamic";
};
zone "." IN {
        type hint;
        file "named.ca";
};
zone "gscaifu.com" IN {
        type master;
        file "gscaifu.com.zone";
};
include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";

[root@node04 ~]# cd /var/named
[root@node04 named]# cp -p named.localhost gscaifu.com.zone
[root@node04 named]# vim gscaifu.com.zone
$TTL 1D
@       IN SOA  @ rname.invalid. (
                                        0       ; serial
                                        1D      ; refresh
                                        1H      ; retry
                                        1W      ; expire
                                        3H )    ; minimum
             NS @
             IN A    192.168.1.104
cluster      IN A    192.168.1.201
cluster      IN A    192.168.1.202
cluster      IN A    192.168.1.203

[root@node04 ~]# systemctl start named.service
[root@node04 ~]# systemctl enable named.service
[root@node04 ~]# systemctl status named.service

[root@node04 ~]# netstat -tunlp | grep named
tcp        0      0 192.168.1.104:53        0.0.0.0:*               LISTEN      1048/named          
tcp        0      0 127.0.0.1:953           0.0.0.0:*               LISTEN      1048/named          
tcp6       0      0 ::1:953                 :::*                    LISTEN      1048/named          
udp        0      0 192.168.1.104:53        0.0.0.0:*                           1048/named     
[root@node01 ~]# cat /etc/resolv.conf 
# Generated by NetworkManager
nameserver 192.168.1.104

[root@node01 ~]# nslookup cluster.gscaifu.com
Server:         192.168.1.104
Address:        192.168.1.104#53
Name:   cluster.gscaifu.com
Address: 192.168.1.201
Name:   cluster.gscaifu.com
Address: 192.168.1.202
Name:   cluster.gscaifu.com
Address: 192.168.1.203

[root@node02 ~]# cat /etc/resolv.conf 
# Generated by NetworkManager
nameserver 192.168.1.104

[root@node02 ~]# nslookup cluster.gscaifu.com
Server:         192.168.1.104
Address:        192.168.1.104#53
Name:   cluster.gscaifu.com
Address: 192.168.1.201
Name:   cluster.gscaifu.com
Address: 192.168.1.202
Name:   cluster.gscaifu.com
Address: 192.168.1.203

标签:named,gscaifu,RAC,Database,com,SCAN,192.168,cluster,root
From: https://blog.51cto.com/dbprofessional/7134662

相关文章

  • [AGC003F] Fraction of Fractal 题解
    一道很好的矩阵题,可以尝试作为矩阵转移的优质练习题。思路考虑由于黑点在原图中处于联通的状态。分三种情况讨论。上下左右联通。考虑这种情况下,不断分形后。最终产生的依然是一整个的大连通块。故,答案为一。上下左右都不连通。那么每一次分形后就会产生黑色点个连通......
  • Oracle学习记录
    Oracle学习记录查询表中所有列名SELECTCOLUMN_NAMEFROMUSER_TAB_COLUMNSWHERETABLE_NAME='MT_DATA_RECORD_ALL'时间比较比较两个日期是否相等SELECT*FROMyour_tableWHEREdate_column=TO_DATE('2022-01-01','YYYY-MM-DD');比较日期是否在某个......
  • 3、掩膜剪裁 —— Extract by Mask
    下载了全球气候数据,需要裁剪出中国区域的气候数据裁剪前:SpatialAnalystTools->ExtractbyMask 裁剪后:  ......
  • 【160Crackme】《Reg》《Afkayas.1.Exe》
    ......
  • unable to open database file , EF生成SQLite数据库
    前言:  记录下,忘了再回头看看。unabletoopendatabasefile 错误  如果使用EF生成SQLite数据库,发现报出错误unabletoopendatabasefile,请检查下“存放SQLite数据文件的文件夹是否存在”......
  • [ARC117D] Miracle Tree
    题目大意给定一棵\(n\)个节点的树,要求构造出一个点权序列\(E\),满足以下三个条件:所有\(E_i\ge1(1\lei\len)\)。对于任意一组\((i,j)(1≤i<j≤N)\),使\(|E_i-E_j|\geq\operatorname{dist}(i,j)\),\(\operatorname{dist}(i,j)\)即树上\(i\)和\(j\)两点距离。......
  • Oracle VM VirtualBox 安装 centos7(最新)
    注意:重启或者从睡眠中唤醒虚拟机后,要systemctlrestartnetwork前期准备下载:http://www.oracle.com/technetwork/cn/server-storage/virtualbox/downloads/index.html 安装:https://blog.csdn.net/maty_wang/article/details/79127718 桥接、host-only、natnetwork的区别:ht......
  • linux安装oracl19c
    1、下载预安装包wgethttp://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/getPackage/oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm2、下载RPM安装包https://www.oracle.com/cn/database/technologies/oracle-database-software-downloads.html#19c3、上传到服务......
  • 笔记整理--C语言--sscanf()和sprintf()的用法总结——转载
    sscanf函数的高级用法sscanf与scanf类似,都是用于输入的,只是后者以屏幕(stdin)为输入源,前者以固定字符串为输入源。函数原型:intsscanf(constchar*format[,argument]...);其中的format可以是一个或多个:{%[*][width][{h|l|I64|L}]type|''|'\t'|'\n'|非%符号},注:*亦可用......
  • Kettle 连接失败 Oracle 数据库报 ora-12505 的解决方法(转)
      用kettle新建DB连接的时候总是报错,可是用plsql连接是可以连上,错误信息大致如下:错误连接数据库[MIS]:org.pentaho.di.core.exception.KettleDatabaseException:ErroroccuredwhiletryingtoconnecttothedatabaseErrorconnectingtodatabase:(usingclassorac......