Mster:
Код: Выделить всё
zone "domain.ru" {
type master;
file "/etc/bind/domain";
allow-transfer { master.ip.addr; };
};
Код: Выделить всё
$ORIGIN .
$TTL 86400 ; 1 day
domain.ru IN SOA ns1.domain.ru. root.domain.ru. (
2010012502 ; serial
28800 ; refresh (8 hours)
14400 ; retry (4 hours)
604800 ; expire (1 week)
86400 ; minimum (1 day)
);
NS ns1.domain.ru.
NS ns2.domain.ru.
A server.ip.1
A server.ip.2
$ORIGIN domain.ru.
ns1 A master.ip
ns2 A slave.ip
Код: Выделить всё
zone "domain.ru" {
type slave;
file "/etc/bind/domain";
masters { master.ip; };
};
Master:
Код: Выделить всё
Jan 25 15:49:13 server named[8721]: received control channel command 'reload'
Jan 25 15:49:13 server named[8721]: loading configuration from '/etc/bind/named.conf'
Jan 25 15:49:13 server named[8721]: max open files (1024) is smaller than max sockets (4096)
Jan 25 15:49:13 server named[8721]: using default UDP/IPv4 port range: [1024, 65535]
Jan 25 15:49:13 server named[8721]: using default UDP/IPv6 port range: [1024, 65535]
Jan 25 15:49:13 server named[8721]: reloading configuration succeeded
Jan 25 15:49:50 server named[8721]: client slave#25654: zone transfer 'domain.ru/AXFR/IN' denied
Код: Выделить всё
Jan 25 17:51:22 server named[9806]: received control channel command 'reload'
Jan 25 17:51:22 server named[9806]: loading configuration from '/etc/bind/named.conf'
Jan 25 17:51:22 server named[9806]: max open files (1024) is smaller than max sockets (4096)
Jan 25 17:51:22 server named[9806]: using default UDP/IPv4 port range: [1024, 65535]
Jan 25 17:51:22 server named[9806]: using default UDP/IPv6 port range: [1024, 65535]
Jan 25 17:51:22 server named[9806]: reloading configuration succeeded
Jan 25 17:51:22 server named[9806]: zone domain.ru/IN: refresh: failure trying master master.ip#53 (source 0.0.0.0#0): operation canceled