close

正常 /etc/bind/named.conf.local

只有 

acl "trusted" {
    localhost;
    localnets;
};

acl "internal-local-nets" {
    192.168.0.0/24;
};
 

不能直接改檔 ...

改 /etc/zentyal/dns.conf

加上 

intnets = 192.168.1.0/24,192.168.2.0/24

改 /usr/share/zentyal/stubs/dns/named.conf.mas ( 加粗體字那三行)

acl "internal-local-nets" {
% foreach my $intnet (@intnets) {
    <% $intnet %>;
% }

% foreach my $net (@internalLocalNets) {
    <% $net %>;
% }
};

重啟服務

service zentyal dns restart

看到  /etc/bind/named.conf.local

有 

acl "trusted" {
    192.168.1.0/24;
    192.168.2.0/24;
    localhost;
    localnets;
};

acl "internal-local-nets" {
    192.168.1.0/24;
    192.168.2.0/24;
    192.168.0.0/24;
};
 

那就 OK 了

arrow
arrow
    文章標籤
    zentyal DC DNS bind acl
    全站熱搜
    創作者介紹
    創作者 echochio 的頭像
    echochio

    echochio

    echochio 發表在 痞客邦 留言(0) 人氣()