Redhat 설치


1. package 설치


   yum -y install bind bind-utils


   rpm -qa | grep bind



2.  named service 설정


   vim /etc/named.conf


   options {

      listen-on port 53 { 127.0.0.1; 192.168.0.0/16; };

      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";

   forwarders {

      8.8.8.8;

      168.95.1.1;

   };

   allow-query { localhost; 192.168.0.0/16; };

:

:

zone "." IN {

type hint;

file "named.ca";

};

zone "test.com" IN {


xxxx@xxxx.xx.com

type master;

file "test.com.zone";

allow-update { none; };

};

zone "168.192.in-addr.arpa" IN {

type master;

file "168.192.zone";

allow-update { none; };

};

include "/etc/named.rfc1912.zones";

include "/etc/named.root.key";


syntax 확인

named-checkconf /etc/named.conf    


3. 각각 zone 파일생성


vim /var/named/test.com.zone


$ORIGIN test.com.

$TTL 86400; time-to-live - (1 day)

primary-dns IN A 192.168.15.199

@ IN SOA primary-dns.test.com. hostmaster.test.com. (

201508061 ; serial number - (yyyymmdd+s)

7200 ; refresh - (2 hours)

300 ; retry - (5 minutes)

604800 ; expire - (1 week)

60 ; minimum - (1 minute)

)

IN NS primary-dns.test.com.

; Oracle RAC Nodes

rac1 IN A 192.168.1.11

rac2 IN A 192.168.1.22

rac3 IN A 192.168.1.44

rac1-priv IN A 192.168.2.11

rac2-priv IN A 192.168.2.22

rac3-priv IN A 192.168.2.44

rac1-vip IN A 192.168.1.111

rac2-vip IN A 192.168.1.112

rac3-vip IN A 192.168.1.113

GNS-vip IN A 192.168.1.114

; Network Storage Server

nas IN A 192.168.1.128

; Single Client Access Name (SCAN) virtual IP

cluster-scan IN A 192.168.1.31

cluster-scan IN A 192.168.1.32

cluster-scan IN A 192.168.1.33


vim /var/named/168.192.zone


$TTL 86400 ; time-to-live - (1 day)

@ IN SOA primary-dns.test.com. hostmaster.example.com. (

201508061 ; serial number - (yyyymmdd+s)

7200 ; refresh - (2 hours)

300 ; retry - (5 minutes)

604800 ; expire - (1 week)

60 ; minimum - (1 minute)

)

@ IN NS test.com.

; Oracle RAC Nodes

11.1 IN PTR rac1.test.com.

22.1 IN PTR rac2.test.com.

44.1 IN PTR rac3.test.com.

11.2 IN PTR rac1-priv.test.com.

22.2 IN PTR rac2-priv.test.com.

44.2 IN PTR rac3-priv.test.com.

111.1 IN PTR rac1-vip.test.com.

112.1 IN PTR rac2-vip.test.com.

113.1 IN PTR rac3-vip.test.com.

114.1 IN PTR GNS-vip.test.com.


; Network Storage Server

128.1 IN PTR nas.test.com.

; Single Client Access Name (SCAN) virtual IP

31.1 IN PTR cluster-scan.thay.com.

32.1 IN PTR cluster-scan.thay.com.

33.1 IN PTR cluster-scan.thay.com.


named-checkzone 168.192.zone


service named restart


'기타' 카테고리의 다른 글

grafana 구성  (0) 2018.03.26
certbot  (0) 2018.02.02
ldap 연결확인  (0) 2017.08.31
backbone 아키텍처  (0) 2017.06.19
rabbitmq 구성  (0) 2017.06.07

+ Recent posts