Вот мои конфиги
acl "localnet" { 192.168.0.0/24; 127.0.0.1; };
options {
zone-statistics yes;
version "NS_KOGPI";
directory "/var/named";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
//query-source address * port 53;
// forward first;
forwarders { 213.179.249.135; 213.179.249.136; 82.207.66.241; 82.207.66.242; 82.207.66.249; 82.207.66.250; 213.179.249.132; 213.179.249.131; 212.113.36.14; 213.179.249.137; 213.179.249.138; 213.179.249.133; 213.179.249.134; };
// auth-nxdomain no; # conform to RFC1035
listen-on { 127.0.0.1; 192.168.0.1; };
max-cache-size 100M;
cleaning-interval 15;
allow-query { "localnet"; };
};
//
// a caching only nameserver config
//
zone "." IN {
type hint;
file "caching-example/named.root";
};
zone "localhost" IN {
type master;
file "caching-example/localhost.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "caching-example/named.local";
allow-update { none; };
};
Зонные файлы localhost.zone, named.local, named.root должны быть обязательно. И по умолчанию вроде должны лежать в директории, это у меня,
Вот пример простих зон
localhost.zone
$TTL 86400
$ORIGIN localhost.
@ 1D IN SOA @ root (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
1D IN NS @
1D IN A 127.0.0.1
named.local
$TTL 86400
@ IN SOA localhost. root.localhost. (
2011032500 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS localhost.
1 IN PTR localhost.
И ещё покажыте вывод etc/zones.conf
Trouble in WINDOWS reboot, trouble in UNIX be root.