Сохраняешь свой конфиг:
mv /etc/bind/named.conf /etc/bind/named.conf.original
потом создаёшь три новых файла с таким содержанием:
touch /etc/bind/named.conf
touch /etc/bind/0.168.192.in-addr.arpa
touch /etc/bind/
shuron.de
(
shuron.de ) - это название твоего домена во внутренней сети! Замени его на тот который у тебя в действительности
/etc/bind/named.conf
Цитата:
#
acl internal { 127.0.0.1; 192.168.0.0/24; };
options {
directory "/var/cache/bind";
auth-nxdomain no;
allow-query { internal; };
allow-recursive { internal; };
forwarders { 127.0.0.1; 213.191.74.19; 213.191.92.86; };
listen-on port 53 { 192.168.0.1; 127.0.0.1; } ;
version "Made in Germany.";
};
logging {
category lame-servers { null; };
category cname { null; };
};
zone "." {
type hint;
file "/etc/bind/db.root";
};
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 "shuron.de" {
type master;
file "/etc/bind/shuron.de";
allow-query { internal; };
};
zone "0.168.192.in-addr.arpa" {
type master;
file "/etc/bind/0.168.192.in-addr.arpa";
allow-query { internal; };
};
|
/etc/bind/0.168.192.in-addr.arpa:
Цитата:
$ORIGIN 0.168.192.in-addr.arpa.
$TTL 1D
@ IN SOA r01.shuron.de. hostmaster.shuron.de. ( 1 3H 1H 1W 3H )
@ IN NS r01.shuron.de.
1 IN PTR r01.shuron.de.
2 IN PTR workstation1.shuron.de.
3 IN PTR workstation2.shuron.de.
|
/etc/bind/
shuron.de:
Цитата:
$ORIGIN shuron.de.
$TTL 1D
@ IN SOA r01 hostmaster ( 1 3H 1H 1W 3H )
@ IN NS r01
@ IN MX 10 r01
r01 IN A 192.168.0.1
workstation1 IN A 192.168.0.2
workstation2 IN A 192.168.0.3
|
Проверь эти файлы.....
/etc/resolv.conf:
Цитата:
search shuron.de
nameserver 127.0.0.1
|
/etc/hosts.conf:
Цитата:
order hosts, bind
multi on
|
/etc/hosts:
Цитата:
127.0.0.1 localhost
192.168.0.1 r01.shuron.de r01
|
/etc/init.d/bind9 reload
смотри логи:
tail -fn 200 /var/log/syslog