Logo

2차네임서버 구축실무

1. /etc/named.conf

options {
        directory “/var/named”;
};


controls {
         inet 127.0.0.1 port 953  allow { localhost; } keys { rndckey; };
};

zone “.” {
        type hint;
        file “named.ca”;
};

zone “0.0.127.in-addr-arpa” {
        type master;
        file “named.local”;
};
zone “webhost.co.kr” {
        type slave;
        file “webhost.zone”;
        masters {
                110.45.100.2; //마스터 ip address
        };
};

include “/etc/rndc.key”;


2. named.local 과 named.ca 준비

/var/named
named.local
named.ca


3. 1차네임서버에서 2차서버 ip 허용

vi named.conf

controls {
         inet 127.0.0.1 port 953  allow { localhost; 110.45.100.3; } keys { rndckey; };
        };

110.45.100.3 은 2차네임서버이다.



4. 2차네임서버 구동후 존파일생성 확인

Prev bind9 네임서버 소스로 설치하기
Next bind-9.3.6 설치와 설정하기 named 구축

Leave a comment