
바인드/이름 지정 등을 실행하는 RHEL6 서버를 RHEL8 서버로 교체할 예정입니다. 그 일환으로 바인드 버전이 9.8에서 9.11로 업데이트되었습니다. 나는 어떤 면에서든 바인드 전문가는 아니지만 어리석게도 이것이 간단한 업데이트여야 한다고 생각했습니다. 불행히도 나는 바인드에 대해 약간만 알고 거의 이해하지 못하는 문제에 직면했습니다. 분명히 동일한 쓰기 가능한 파일을 가리키는 여러 보기를 더 이상 가질 수 없습니까? 명명된 작업이 시작되지 않습니다.
인터넷 검색을 좀 해보니 이것이 바인드 9.10 이후로 실제로 "적절한" 반응이고 이 문제를 해결하기 위해 인뷰 참조를 통합해야 한다는 것을 알게 되었습니다.
다음은 제가 받은 오류의 일부입니다...
Dec 03 16:45:51 server-1a bash[97204]: /etc/named/slave.zones:4: writeable file 'data/test.exampledomain.com.zone': already in use: /etc/named/slave.zones:4
Dec 03 16:45:51 server-1a bash[97204]: /etc/named/slave.zones:10: writeable file 'data/test2.exampledomain.com.zone': already in use: /etc/named/slave.zones:10
Dec 03 16:45:51 server-1a bash[97204]: /etc/named/slave.zones:16: writeable file 'data/test3.exampledomain.com.zone': already in use: /etc/named/slave.zones:16
내가 길을 잃었기 때문에 누군가 내 구성을 적절하게 업데이트하는 데 도움을 줄 수 있는 재능과 의지가 있기를 바랍니다.
업데이트가 필요한 명명된.conf 파일의 (익명화된) 부분은 다음과 같습니다. 생각?
view "localhost_resolver" {
match-clients { localhost; };
allow-query { localhost; };
allow-recursion { localhost; };
recursion yes;
include "/etc/named/root.hints";
include "/etc/named.rfc1912.zones";
include "/etc/named/slave.zones";
include "/etc/named/forwarder.zones";
};
view "abc_clients" {
response-policy { zone "abc"; };
match-clients { 1.2.3.4/24; };
allow-query { 1.2.3.4/24; };
allow-recursion { 1.2.3.4/24; };
recursion yes;
include "/etc/named/abc.conf.local";
include "/etc/named/root.hints";
include "/etc/named/slave.zones";
};
view "trusted_resolver" {
match-clients { 1.9.0.0/21;1.8.0.0/21;1.7.0.0/24;1.6.0.0/21; };
allow-query { trusted; };
allow-transfer { "none"; };
allow-recursion { trusted; };
recursion yes;
include "/etc/named/root.hints";
include "/etc/named/slave.zones";
include "/etc/named/forwarder.zones";
};
view "default" {
match-clients { any; };
allow-transfer { "none"; };
recursion no;
};
답변1
여러 보기에서 동일한 백업 영역 파일을 사용하는 슬레이브 영역이 있습니다. 이는 일치하는 슬레이브 영역 정의가 영역을 별도로 전송하고 내용을 동일한 파일에 기록하기 때문에 허용되지 않습니다(안전하지 않음).
대신에 할 수 있는 일은in-view
한 보기의 기존 영역을 다른 보기에 노출하는 영역 옵션입니다.
다음과 같이 보일 수 있습니다(문서에서 가져온 예).
view internal {
match-clients { 10/8; };
zone example.com {
type master;
file "example-external.db";
};
};
view external {
match-clients { any; };
zone example.com {
in-view internal;
};
};