모든 영역에 대한 DNS 슬레이브 바인딩

모든 영역에 대한 DNS 슬레이브 바인딩

우리는 Bind9슬레이브로 실행 중이지만 Named.conf와 같은 선언은 없지만 type slave마스터에서 업데이트된 항목을 볼 수 있는지 궁금합니다. 마스터에 항목을 추가하고 새 영역을 추가하기만 하면 슬레이브에 자동으로 복제되므로 슬레이브에 아무것도 추가하거나 건드릴 필요가 없습니다. 이 슬레이브 스테이션을 구성하는 방법은 무엇입니까?

named.conf이런 항목이 보이는데, 이 정도면 모든 영역의 노예로 만들 수 있을까요?

 allow-transfer { acl-nameservers; }; 
    allow-new-zones yes;

    server 192.168.100.10 { keys dns-xfer; };
        also-notify { 192.168.100.10; };

답변1

아마도 모든 영역이 명령을 통해 추가되었을 것입니다 rndc addzone. 이는 허용되는 이유는 다음과 같습니다.allow-new-zones yes

man rndc:

rndc addzone zone [class [view]] configuration
   Add a zone while the server is running. This command requires the
   allow-new-zones option to be set to yes. The configuration string
   specified on the command line is the zone configuration text that
   would ordinarily be placed in named.conf.

   The configuration is saved in a file called hash.nzf, where hash
   is a cryptographic hash generated from the name of the view. When
   named is restarted, the file will be loaded into the view
   configuration, so that zones that were added can persist after a
   restart.

   This sample addzone command would add the zone example.com to the 
   default view:

   $rndc addzone example.com '{ type master; file "example.com.db"; };'

따라서 이러한 *.nzf 또는 *.db 파일이 바인드의 작업 디렉터리(예: /var/lib/named)에 있는지 확인할 수 있습니다.

관련 정보