ORACLE RAC部署实录准备任务:BIND(DNS)

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ORACLE RAC部署实录准备任务:BIND(DNS)相关的知识,希望对你有一定的参考价值。

[[email protected] ~]# yum install bind

[[email protected] ~]# 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; };
        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 no;
        dnssec-validation no;
        /* 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";
};
zone "tidepharm.cn" IN {
        type master;
        file "tidepharm.cn.zone";
};
include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";


[[email protected] ~]# cd /var/named/
[[email protected] named]# cp named.localhost tidepharm.cn.zone
[[email protected] named]# vi tidepharm.cn.zone
$TTL    86400
@               IN SOA  tidepharm.cn. admin.tidepharm.cn. (
                                        42              ; serial
                                        3H              ; refresh
                                        15M             ; retry
                                        1W              ; expiry
                                        1D )            ; minimum
            IN NS   ns.tidepharm.cn.
ns          IN A    192.168.1.250
king        IN A    192.168.1.251
king        IN A    192.168.1.252
king        IN A    192.168.1.253


[[email protected] named]# chown root:named tidepharm.cn.zone
[[email protected] ~]# /etc/init.d/named start
[[email protected] ~]# chkconfig named on
[[email protected] ~]# chkconfig named --list
named           0:off   1:off   2:on    3:on    4:on    5:on    6:off


[[email protected] ~]# vi /etc/resolv.conf 
search tidepharm.cn
nameserver 192.168.1.250

[[email protected] ~]# vi /etc/nsswitch.conf 
hosts:      files dns

[[email protected] ~]# nslookup king.tidepharm.cn
Server:         192.168.1.250
Address:        192.168.1.250#53
Name:   king.tidepharm.cn
Address: 192.168.1.251
Name:   king.tidepharm.cn
Address: 192.168.1.252
Name:   king.tidepharm.cn
Address: 192.168.1.253


[[email protected] ~]# vi /etc/resolv.conf 
search tidepharm.cn
nameserver 192.168.1.250

[[email protected] ~]# vi /etc/nsswitch.conf 
hosts:      files dns 

[[email protected] ~]# nslookup king.tidepharm.cn
Server:         192.168.1.250
Address:        192.168.1.250#53
Name:   king.tidepharm.cn
Address: 192.168.1.251
Name:   king.tidepharm.cn
Address: 192.168.1.252
Name:   king.tidepharm.cn
Address: 192.168.1.253


以上是关于ORACLE RAC部署实录准备任务:BIND(DNS)的主要内容,如果未能解决你的问题,请参考以下文章

ORACLE RAC部署实录:Oracle Grid Infrastructure

Goldengate 部署oracle10g在 rac asm环境,完整教程

Oracle数据库性能测试工具:Swingbench部署实录

1.5小时!一键部署Oracle 11GR2 RAC 集群

AIX 下 Oracle RAC 部署文档 | 周末送资料

1.5小时!一键部署Oracle 11GR2 RAC 集群