네임서버
[네임서버] bind view 설정 시 rndc 명령어
변군이글루
2013. 6. 21. 21:30
반응형
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
반응형