반응형
bind view 설정 시 rndc 명령어
rndc 사용법
reload Reload configuration file and zones.
reload zone [class [view]]
Reload a single zone.
retransfer zone [class [view]]
Retransfer a single zone without checking serial number.
flush [view] Flushes the server's cache for a view.
flushname name [view]
Flush the given name from the server's cache(s)
마스트 서버 named 설정 파일
vim /etc/named.conf
...
//internal zone(default)
view "internal-view" {
include "/etc/named.rfc1912.zones";
//match-clients { 127.0.0.1; 192.168.0.0/24; !192.168.0.63; };
match-clients { 127.0.0.1; 192.168.0.62; };
zone "." IN {
type hint;
file "named.ca";
};
zone "mocha.sangchul.kr" IN {
type master;
file "mocha.sangchul.kr.zone";
allow-transfer { 192.168.0.63; };
allow-update { 192.168.0.63; };
zone-statistics yes;
};
zone "0.168.192.in-addr.arpa" IN {
type master;
file "192_168_0.zone";
allow-transfer { 192.168.0.63; };
allow-update { 192.168.0.63; };
};
};
//external zone
view "external-view" {
match-clients { any; };
recursion no;
zone "." IN {
type hint;
file "named.ca";
};
zone "mocha.sangchul.kr" IN {
type master;
file "ext-mocha.sangchul.kr.zone";
allow-transfer { 192.168.0.63; };
allow-update { 192.168.0.63; };
};
zone "0.168.192.in-addr.arpa" IN {
type master;
file "ext-192_168_0.zone";
allow-transfer { 192.168.0.63; };
allow-update { 192.168.0.63; };
};
};
슬레이브 서버 named 설정 파일
vim /etc/bind/named.conf
vim /etc/bind/named.conf
...
//internal zone(default)
view "internal-view" {
include "/etc/bind/named.conf.default-zones";
//match-clients { 127.0.0.1; 192.168.0.0/24; !192.168.0.63; };
match-clients { 127.0.0.1; 192.168.0.62; };
zone "mocha.sangchul.kr" IN {
type slave;
file "slaves/mocha.sangchul.kr.zone";
masters { 192.168.0.62; };
zone-statistics yes;
};
zone "0.168.192.in-addr.arpa" IN {
type slave;
file "slaves/192_168_0.zone";
masters { 192.168.0.62; };
};
};
//external zone
view "external-view" {
match-clients { any; };
recursion no;
zone "mocha.sangchul.kr" IN {
type slave;
file "slaves/ext-mocha.sangchul.kr.zone";
masters { 192.168.0.62; };
};
zone "0.168.192.in-addr.arpa" IN {
type slave;
file "slaves/ext-192_168_0.zone";
masters { 192.168.0.62; };
};
};
rndc 명령어
rndc retransfer mocha.sangchul.kr IN internal-view
rndc reload mocha.sangchul.kr IN internal-view
$ rndc reload mocha.sangchul.kr IN internal-view
zone refresh queued
rndc flush internal-view
rndc flushname mocha.sangchul.kr internal-view
728x90
반응형
'네임서버' 카테고리의 다른 글
DNS SPF 란, SPF 설정하는 방법 (0) | 2013.06.24 |
---|---|
[네임서버] DNSSEC 설정 및 적용 (0) | 2013.06.21 |
[네임서버] dnssec 적용 관련 (0) | 2013.06.21 |
bind named.conf 파일 소유권 오류 (loading configuration: permission denied) (0) | 2013.06.21 |
DNS 질의 시 TIMEOUT 시간 계산 방법 (0) | 2013.06.21 |