Добрый день знатоки. Помогите настроить DNS сервер. Помимо него на системе крутится Samba сервер. Привожу конфиги и логи:
******************************************************************************
cat rc.conf
defaultrouter="192.168.0.101"
hostname="dserver.sfk"
ifconfig_nfe0="inet 192.168.0.102 netmask 255.255.255.0"
#SSH
sshd_enable="YES"
#Samba
samba_enable="YES"
#DNS Server
named_enable="YES"
named_program="/usr/sbin/named"
named_flags="-u bind -c /etc/namedb/named.conf"
******************************************************************************
cat named.conf
options {
directory "/etc/namedb";
pid-file "/var/run/named/pid";
dump-file "/var/dump/named_dump.db";
statistics-file "/var/stats/named.stats";
# Включаем форвардинг с прокси сервера
forwarders {
192.168.0.101;
};
# IP-адреса интерфейсов сервера, на котором будет запущена служба named
listen-on {
127.0.0.1;
192.168.0.102;
};
# Диапазон адресов клиентов, для которых разрешено делать запросы
allow-recursion {
127.0.0.1;
192.168.0.0/24;
};
};
logging {
category lame-servers { null; };
};
# Корневая зона
zone "." {
type hint;
file "named.root";
};
# Прямая локальная зона
zone "localhost" {
type master;
file "master/localhost-forward.db";
};
# Обратная локальная зона
zone "127.in-addr.arpa" {
type master;
file "master/localhost-reverse.db";
};
# Моя зона
zone "sfk" {
type master;
file "master/sfk";
};
****************************************************************************
cat sfk
$ORIGIN .
$TTL 3600
sfk IN SOA dserver.sfk. cad2206.yandex.ru (
2010021701; Serial
3600; Refresh
900; Retry
360000; Expire
3600; Minimum
)
NS dserver.sfk.
$ORIGIN sfk.
$TTL 360000
d3-buh A 192.168.0.122
****************************************************************************
Вот что пишет при запуске BIND:
Aug 17 10:10:00 dserver named[718]: starting BIND 9.8.0-P4 -u bind -c /etc/namedb/named.conf -t /var/named -u bind
Aug 17 10:10:00 dserver named[718]: built with '--localstatedir=/var' '--disable-linux-caps' '--disable-symtable' '--with-randomdev=/dev/random' '--with-openssl=/usr' '--with-libxml2=/usr/local' '--without-idn' '--enable-threads' '--sysconfdir=/etc/namedb' '--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/usr/share/info/' '--build=i386-portbld-freebsd8.2' 'build_alias=i386-portbld-freebsd8.2' 'CC=cc' 'CFLAGS=-O2 -pipe -fno-strict-aliasing' 'LDFLAGS= -rpath=/usr/lib:/usr/local/lib' 'CPPFLAGS=' 'CPP=cpp' 'CXX=c++' 'CXXFLAGS=-O2 -pipe -fno-strict-aliasing'
Aug 17 10:10:00 dserver named[718]: command channel listening on 127.0.0.1#953
Aug 17 10:10:00 dserver named[718]: command channel listening on ::1#953
Aug 17 10:10:00 dserver named[718]: the working directory is not writable
Aug 17 10:10:00 dserver named[718]: zone sfk/IN: NS 'dserver.sfk' has no address records (A or AAAA)
Aug 17 10:10:00 dserver named[718]: zone sfk/IN: not loaded due to errors.
Aug 17 10:10:00 dserver named[718]: managed-keys-zone ./IN: loading from master file managed-keys.bind failed: file not found
Aug 17 10:10:00 dserver named[718]: running
Пробую пинговать машину в сети (та, что прописана в зоне):
ping d3-buh
ping: cannot resolve d3-buh: Unknown host
ping 192.168.0.122
PING 192.168.0.122 (192.168.0.122): 56 data bytes
64 bytes from 192.168.0.122: icmp_seq=0 ttl=128 time=0.720 ms
64 bytes from 192.168.0.122: icmp_seq=1 ttl=128 time=0.672 ms
64 bytes from 192.168.0.122: icmp_seq=2 ttl=128 time=0.659 ms
т.е. по имени не пингуется....
Вот результаты nslookup:
dserver# nslookup nix.ru
Server: 192.168.0.102
Address: 192.168.0.102#53
Non-authoritative answer:
Name: nix.ru
Address: 213.247.181.48
dserver# nslookup 192.168.0.122
Server: 192.168.0.102
Address: 192.168.0.102#53
** server can't find 122.0.168.192.in-addr.arpa.: NXDOMAIN
dserver# nslookup d3-buh
;; Got SERVFAIL reply from 192.168.0.102, trying next server
Server: 192.168.0.102
Address: 192.168.0.102#53
** server can't find d3-buh: NXDOMAIN
Вот собственно проблемка... подскажите