千家信息网

【Oracle Database】Oracle RAC(二):DNS

发表于:2025-01-20 作者:千家信息网编辑
千家信息网最后更新 2025年01月20日,[root@wallet03 ~]# yum install -y bind[root@wallet03 ~]# vi /etc/named.confoptions { listen-o
千家信息网最后更新 2025年01月20日【Oracle Database】Oracle RAC(二):DNS
[root@wallet03 ~]# yum install -y bind[root@wallet03 ~]# vi /etc/named.confoptions {        listen-on port 53 { 192.168.40.36; };        /* 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;        /* 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@wallet03 ~]# cd /var/named[root@wallet03 named]# cp -p named.localhost gscaifu.com.zone[root@wallet03 named]# vi gscaifu.com.zone$TTL 1D@       IN SOA  @ rname.invalid. (                                        0       ; serial                                        1D      ; refresh                                        1H      ; retry                                        1W      ; expire                                        3H )    ; minimum             NS @             IN A    192.168.40.36wallet       IN A    192.168.40.101wallet       IN A    192.168.40.102wallet       IN A    192.168.40.103[root@wallet03 ~]# service named startGenerating /etc/rndc.key:                                  [  OK  ]Starting named:                                            [  OK  ][root@wallet03 ~]# netstat -tunlp | grep namedtcp        0      0 192.168.40.36:53            0.0.0.0:*               LISTEN      2755/named          tcp        0      0 127.0.0.1:953               0.0.0.0:*               LISTEN      2755/named          tcp        0      0 ::1:953                     :::*                    LISTEN      2755/named          udp        0      0 192.168.40.36:53            0.0.0.0:*                           2755/named   [root@wallet01 ~]# vi /etc/resolv.conf search gscaifu.comnameserver 192.168.40.36[root@wallet01 ~]# nslookup wallet.gscaifu.comServer:         192.168.40.36Address:        192.168.40.36#53Name:   wallet.gscaifu.comAddress: 192.168.40.101Name:   wallet.gscaifu.comAddress: 192.168.40.102Name:   wallet.gscaifu.comAddress: 192.168.40.103[root@wallet02 ~]# vi /etc/resolv.conf search gscaifu.comnameserver 192.168.40.36[root@wallet02 ~]# nslookup wallet.gscaifu.comServer:         192.168.40.36Address:        192.168.40.36#53Name:   wallet.gscaifu.comAddress: 192.168.40.102Name:   wallet.gscaifu.comAddress: 192.168.40.103Name:   wallet.gscaifu.comAddress: 192.168.40.101


0