/etc/bind/named.conf
acl my-network { 192.168.1.0/24; 127.0.0.1; }; options { directory "/var/bind"; forwarders { 192.168.1.20; }; listen-on-v6 { none; }; listen-on { 127.0.0.1; 192.168.1.164; }; allow-query { my-network; }; pid-file "/var/run/named/named.pid"; }; zone "." IN { type hint; file "named.ca"; }; zone "localhost" IN { type master; file "pri/localhost.zone"; allow-update { none; }; notify no; }; zone "127.in-addr.arpa" IN { type master; file "pri/127.zone"; allow-update { none; }; notify no; }; zone "oper777.ru" { type master; file "pri/oper777.zone"; }; zone "1.168.192.in-addr.arpa" { type master; file "pri/oper777_rev.zone"; };
Файлы зоны:
/var/bind/pri/oper777.zone
$TTL 1W @ IN SOA oper777.ru. root.oper777.ru. ( 2009070203 ; Serial 28800 ; Refresh 14400 ; Retry 604800 ; Expire - 1 week 86400 ) ; Minimum @ IN NS ve-104.oper777.ru. ve-101.oper777.ru. A 192.168.1.161 ve-102.oper777.ru. A 192.168.1.162 ve-103.oper777.ru. A 192.168.1.163 ve-104.oper777.ru. A 192.168.1.164 www.ve-102 IN CNAME ve-102.oper777.ru.
/var/bind/pri/oper777_rev.zone
$TTL 1W @ IN SOA oper777.ru. root.oper777.ru. ( 2009070203 ; Serial 28800 ; Refresh 14400 ; Retry 604800 ; Expire - 1 week 86400 ) ; Minimum @ IN NS ve-104.oper777.ru. 161 IN PTR ve-101.oper777.ru. 162 IN PTR ve-102.oper777.ru. 163 IN PTR ve-103.oper777.ru.
Комментариев нет:
Отправить комментарий