URL: https://www.opennet.me/cgi-bin/openforum/vsluhboard.cgi
Форум: vsluhforumID15
Нить номер: 1612
[ Назад ]

Исходное сообщение
"Не работает BIND 9"

Отправлено allalex , 13-Дек-07 16:05 
Всем доброго времени суток!
Настрайваю бинд 9, перебрал массу статей кажется всё верно но не dig не ping не проходят.
# Copyright (c) 2001-2004 SuSE Linux AG, Nuernberg, Germany.
# All rights reserved.
#
# Author: Frank Bodammer, Lars Mueller <lmuelle@suse.de>
#
# /etc/named.conf
#
# This is a sample configuration file for the name server BIND 9. It works as
# a caching only name server without modification.
#
# A sample configuration for setting up your own domain can be found in
# /usr/share/doc/packages/bind/sample-config.
#
# A description of all available options can be found in
# /usr/share/doc/packages/bind/misc/options.

options {
directory "/var/lib/named";
pid-file "/var/lib/named/var/run/named/named.pid";


#forwarders { 192.0.2.1; 192.0.2.2; };
#forward first;

listen-on port 53 { 192.168.0.6; 127.0.0.1; };

# The listen-on-v6 record enables or disables listening on IPv6
# interfaces. Allowed values are 'any' and 'none' or a list of
# addresses.

#listen-on-v6 { any; };

# The next three statements may be needed if a firewall stands between
# the local server and the internet.

#query-source address * port 53;
#transfer-source * port 53;
#notify-source * port 53;

allow-query { 192.168.0.0/24; localhost;
};
include "/etc/named.d/forwarders.conf";
};

zone "." in {
type hint;
file "root.hint";

};

zone "localhost" in {
type master;
file "localhost.zone"; allow-update { none; };

};

zone "0.0.127.in-addr.arpa" in {
type master;
file "127.0.0.zone"; allow-update { none; };
};
zone "scve.ru.zone" in {
type master;
file "master/scve.ru.zone";
};

zone "0.168.192.in-addr.arpa" in {
type master;
file "master/192.168.0.zone";


};


logging {
category default { log_syslog; };
channel log_syslog { syslog; };
};

# You can insert further zone records for your own domains below or create
# single files in /etc/named.d/ and add the file names to
# NAMED_CONF_INCLUDE_FILES.
# See /usr/share/doc/packages/bind/README.SUSE for more details.


$TTL 86400
@ IN SOA @ root.scve.ru. (
2007111300 ; serial
86400 ; refresh (3 hours)
3600 ; retry (1 hour)
604800 ; expire (1 week)
86400) ; minimum (1 day)
IN NS s4.scve.ru
s4.scve.ru IN A 192.168.0.6
s4 IN A 192.168.0.6
scve.ru IN MX 10 s4.scve.ru

$TTL 86400
0.168.192.in-addr.arpa. IN SOA @ root.scve.ru. (
2007111301 ; Serial
86400 ; Refresh
3600 ; Retry
604800 ; Expire
86400 ) ; Minimum
IN NS s4.scve.ru.
6 IN PTR s4.scve.ru
6 IN PTR scve.ru


$TTL 86400
0.0.127.in-addr.arpa. IN SOA @ root.scve.ru. (
2007111302 ; serial (d. adams)
108000 ; refresh
1800 ; retry
1209600 ; expiry
86400 ) ; minimum
0.0.127.in-addr.arpa. IN NS s4.scve.ru.
1 PTR s4.scve.ru

$TTL 86400
localhost. IN SOA @ s4.scve.ru. (
2007111303 ;serial number
86400 ;refresh
3600 ;retry
604800 ;expire
86400 ;minimum
)
localhost. IN NS s4.scve.ru.
localhost. IN A 127.0.0.1


s4:~ # /etc/init.d/named restart
Shutting down name server BIND done
Starting name server BIND done


Dec 13 15:48:53 s4 named[15630]: running
Dec 13 15:48:53 s4 named[15630]: zone 0.0.127.in-addr.arpa/IN: sending notifies (serial 2007111302)
Dec 13 15:48:53 s4 named[15630]: zone localhost/IN: sending notifies (serial 2007111303)
Dec 13 15:48:53 s4 named[15630]: zone 0.168.192.in-addr.arpa/IN: sending notifies (serial 2007111301)
Dec 13 15:48:53 s4 named[15630]: zone scve.ru.zone/IN: sending notifies (serial 2007111300)
Dec 13 15:48:53 s4 named[15630]: client 192.168.0.6#1148: received notify for zone 'scve.ru.zone'


s4:~ # ping scve.ru
ping: unknown host scve.ru
s4:~ # dig scve.ru
;; Warning: ID mismatch: expected ID 2493, got 8215
;; Warning: ID mismatch: expected ID 2493, got 8215

; <<>> DiG 9.3.4 <<>> scve.ru
;; global options: printcmd
;; connection timed out; no servers could be reached
s4:~ #


resolv.conf
domain scve.ru
search scve.ru
nameserver 192.168.0.6


В чём может быть проблемма?
Спасибо.


Содержание

Сообщения в этом обсуждении
"Не работает BIND 9"
Отправлено allalex , 13-Дек-07 19:18 
>[оверквотинг удален]
>
>
>resolv.conf
>domain scve.ru
>search scve.ru
>nameserver 192.168.0.6
>
>
>В чём может быть проблемма?
>Спасибо.

Всё получилось. обновил пакеты и оздал зоны в ясте потом отредоктировал руками.