[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