Доброго времени суток.
Тестовая схема мастер и 2 слэйва. До внедрения view трансфер и нотифаи проходили нормально, после внедрения - нет. На сколько я знаю, view влияет только на ответы на запросы, а не на трансфер или я не прав?
named.local на мастере:
acl "localnet" { 194.135.107.0/24; };
view "internal" {
match-clients { "localnet"; };
match-destinations { 194.135.107.163; };
match-recursive-only no;
zone "test.ru" {
type master;
file "internal.test.ru";
allow-transfer { 10.0.1.1; 10.0.2.2; };
notify explicit;
also-notify { 10.0.1.1; 10.0.2.2; };
};
};
view "external" {
match-clients { "any"; };
match-destinations { 194.135.107.163; };
match-recursive-only no;
zone "test.ru" {
type master;
file "external.test.ru";
allow-transfer { 10.0.1.1; 10.0.2.2; };
notify explicit;
also-notify { 10.0.1.1; 10.0.2.2; };
};
};
acl "localnet" { 194.135.107.0/24; };
view "internal" {
match-clients { "localnet"; };
match-destinations { 194.135.107.162; };
match-recursive-only no;
zone "test.ru" {
type slave;
file "internal.test.ru";
masters { 10.0.2.3; };
allow-notify { 10.0.2.3; };
notify no;
transfer-source 10.0.2.2;
};
};
view "external" {
match-clients { "any"; };
match-destinations { 8.8.8.8; };
match-recursive-only no;
zone "test.ru" {
type slave;
file "external.test.ru";
masters { 10.0.2.3; };
allow-notify { 10.0.2.3; };
notify no;
transfer-source 10.0.2.2;
};
};
И вот такое я теперь получаю в журнале bind на слэйве:
............
25-Mar-2015 10:33:23.895 general: notice: running
25-Mar-2015 10:33:23.896 general: info: zone test.ru/IN/internal: refresh: unexpected rcode (REFUSED) from master 10.0.2.3#53 (source 10.0.2.2#0)
25-Mar-2015 10:33:23.896 general: info: zone test.ru/IN/internal: Transfer started.
25-Mar-2015 10:33:23.897 xfer-in: info: transfer of 'test.ru/IN/internal' from 10.0.2.3#53: connected using 10.0.2.2#42426
25-Mar-2015 10:33:23.897 xfer-in: error: transfer of 'test.ru/IN/internal' from 10.0.2.3#53: failed while receiving responses: REFUSED
25-Mar-2015 10:33:23.897 xfer-in: info: transfer of 'test.ru/IN/internal' from 10.0.2.3#53: Transfer completed: 0 messages, 0 records, 0 bytes, 0.001 secs (0 bytes/sec)
25-Mar-2015 10:33:24.396 general: info: zone test.ru/IN/external: refresh: unexpected rcode (REFUSED) from master 10.0.2.3#53 (source 10.0.2.2#0)
25-Mar-2015 10:33:24.396 general: info: zone test.ru/IN/external: Transfer started.
25-Mar-2015 10:33:24.397 xfer-in: info: transfer of 'test.ru/IN/external' from 10.0.2.3#53: connected using 10.0.2.2#58400
25-Mar-2015 10:33:24.398 xfer-in: error: transfer of 'test.ru/IN/external' from 10.0.2.3#53: failed while receiving responses: REFUSED
25-Mar-2015 10:33:24.398 xfer-in: info: transfer of 'test.ru/IN/external' from 10.0.2.3#53: Transfer completed: 0 messages, 0 records, 0 bytes, 0.001 secs (0 bytes/sec)