【Oracle Database】Oracle RAC(二):DNS
短信预约 -IT技能 免费直播动态提醒
[root@wallet03 ~]# yum install -y bind
[root@wallet03 ~]# vi /etc/named.conf
options {
listen-on port 53 { 192.168.40.36; };
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;
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.36
wallet IN A 192.168.40.101
wallet IN A 192.168.40.102
wallet IN A 192.168.40.103
[root@wallet03 ~]# service named start
Generating /etc/rndc.key: [ OK ]
Starting named: [ OK ]
[root@wallet03 ~]# netstat -tunlp | grep named
tcp 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.com
nameserver 192.168.40.36
[root@wallet01 ~]# nslookup wallet.gscaifu.com
Server: 192.168.40.36
Address: 192.168.40.36#53
Name: wallet.gscaifu.com
Address: 192.168.40.101
Name: wallet.gscaifu.com
Address: 192.168.40.102
Name: wallet.gscaifu.com
Address: 192.168.40.103
[root@wallet02 ~]# vi /etc/resolv.conf
search gscaifu.com
nameserver 192.168.40.36
[root@wallet02 ~]# nslookup wallet.gscaifu.com
Server: 192.168.40.36
Address: 192.168.40.36#53
Name: wallet.gscaifu.com
Address: 192.168.40.102
Name: wallet.gscaifu.com
Address: 192.168.40.103
Name: wallet.gscaifu.com
Address: 192.168.40.101
免责声明:
① 本站未注明“稿件来源”的信息均来自网络整理。其文字、图片和音视频稿件的所属权归原作者所有。本站收集整理出于非商业性的教育和科研之目的,并不意味着本站赞同其观点或证实其内容的真实性。仅作为临时的测试数据,供内部测试之用。本站并未授权任何人以任何方式主动获取本站任何信息。
② 本站未注明“稿件来源”的临时测试数据将在测试完成后最终做删除处理。有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341