О.С. Debian squeeze Bind9 лезут ошибки
rdebian named[2351]: starting BIND 9.7.1-P2 -u bind -t /var/lib/named
Dec 28 08:23:19 virdebian named[2351]: built with '--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--sysconfdir=/etc/bind' '--localstatedir=/var' '--enable-threads' '--enable-largefile' '--with-libtool' '--enable-shared' '--enable-static' '--with-openssl=/usr' '--with-gssapi=/usr' '--with-gnu-ld' '--with-dlz-postgres=no' '--with-dlz-mysql=no' '--with-dlz-bdb=yes' '--with-dlz-filesystem=yes' '--with-dlz-ldap=yes' '--with-dlz-stub=yes' '--with-geoip=/usr' '--enable-ipv6' 'CFLAGS=-fno-strict-aliasing -DDIG_SIGCHASE -O2' 'LDFLAGS=' 'CPPFLAGS='
Dec 28 08:23:19 virdebian named[2351]: adjusted limit on open files from 1024 to 1048576
Dec 28 08:23:19 virdebian named[2351]: found 1 CPU, using 1 worker thread
Dec 28 08:23:19 virdebian named[2351]: using up to 4096 sockets
Dec 28 08:23:19 virdebian named[2351]: loading configuration from '/etc/bind/named.conf'
Dec 28 08:23:19 virdebian named[2351]: /etc/bind/named.conf.options:30: missing ';' before 'auth-nxdomain'
Dec 28 08:23:19 virdebian named[2351]: /etc/bind/named.conf.options:35: unknown option 'logging'
Dec 28 08:23:19 virdebian named[2351]: /etc/bind/named.conf.default-zones:2: unknown option 'zone'
Dec 28 08:23:19 virdebian named[2351]: /etc/bind/named.conf.default-zones:10: unknown option 'zone'
Dec 28 08:23:19 virdebian named[2351]: /etc/bind/named.conf.default-zones:15: unknown option 'zone'
Dec 28 08:23:19 virdebian named[2351]: /etc/bind/named.conf.default-zones:20: unknown option 'zone'
Dec 28 08:23:19 virdebian named[2351]: /etc/bind/named.conf.default-zones:25: unknown option 'zone'
Dec 28 08:23:19 virdebian named[2351]: /etc/bind/named.conf.default-zones:30: unknown option 'zone'
Dec 28 08:23:19 virdebian named[2351]: /etc/bind/named.conf:12: '}' expected near end of file
Dec 28 08:23:19 virdebian named[2351]: loading configuration: unexpected token
Dec 28 08:23:19 virdebian named[2351]: exiting (due to fatal error)
причем в named.conf.default-zones не правил вообще ничего
named.conf.options
acl "virdebian" {192.168.3.0/24;127.0.0.1;};
options {
directory "/var/cache/bind";
pid-file "/var/cache/bind/pid";
dump-file "/var/cache/bind/cache_dump.db";
statistics-file "/var/cache/bind/named_stats.txt";
memstatistics-file "/var/cache/bind/named_mem_stats.txt";
#от кого разрешаем принимать запросы
allow-query { "virdebian"; };
#Разрешаем выполнять рекурсивные запросы только с virdebian
forwarders { 83.149.24.244;
83.149.24.244;
8.8.8.8;
};
#скажем на каких портах обслуживать днс запросы
listen-on port 53 {
127.0.0.1;
192.168.3.25;
};
#инфа о сервере
version "virdebian DNS"
auth-nxdomain no; # conform to RFC1035
#отключаем ipv 6
listen-on-v6 { none; };
#ведение лога
logging {
channel warning {
file "/var/log/bind/dns_warning" version 3 size 10m";
severity warning;
print-category yes;
print-severity yes;
print-time yes;
};
logging {
channel general_dns {
file "/var/log/bind/dns_logs" version 3 size 10m";
severity info;
print-category yes;
print-severity yes;
print-time yes;
};
category default {warning};
category default {general_dns};
};
named.conf.default-zones
// prime the server with knowledge of the root servers
zone "." {
type hint;
file "/etc/bind/db.root";
};
// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912
zone "localhost" {
type master;
file "/etc/bind/db.local";
};
zone "127.in-addr.arpa" {
type master;
file "/etc/bind/db.127";
};
zone "0.in-addr.arpa" {
type master;
file "/etc/bind/db.0";
};
zone "255.in-addr.arpa" {
type master;
file "/etc/bind/db.255";
};
zone "virdebian.ru" {
type master;
file "/etc/bind/db.virdebian";
};