LINUX.ORG.RU
ФорумAdmin

проблема с DNS в BIND


0

0

Поставил BIND из rpm пакета bind-9.2.4-16.EL4 на RedHat EL4.
Сделал как полагается chroot окружение
[root@ns3 chroot]# ls -lR
.:
total 3
drwxr-xr-x 2 root root 1024 Jun 7 05:07 dev
drwxr-xr-x 2 root root 1024 Jun 7 06:37 etc
drwxr-xr-x 4 root root 1024 Jun 7 05:02 var

./dev:
total 0
crw-rw-rw- 1 root root 1, 3 Apr 13 2006 null
crw-r--r-- 1 root root 1, 8 Apr 13 2006 random

./etc:
total 6
-rw-r--r-- 1 root root 815 Jun 1 03:57 localtime
-rw-r--r-- 1 root root 1385 Jun 7 2007 named.conf
-rw-r----- 1 root named 1209 Jun 1 03:57 rndc.conf
-rw-r----- 1 root named 132 Jun 1 03:57 rndc.key

./var:
total 2
drwxr-xr-x 4 root root 1024 Jun 7 05:56 named
drwxr-xr-x 3 named named 1024 Jun 7 05:24 run

./var/named:
total 11
drwx------ 2 named named 1024 Jun 7 05:48 data
-rw-r--r-- 1 named named 198 Aug 26 2004 localdomain.zone
-rw-r--r-- 1 named named 195 Aug 26 2004 localhost.zone
-rw-r--r-- 1 named named 415 Aug 26 2004 named.broadcast
-rw-r--r-- 1 named named 2518 Aug 26 2004 named.ca
-rw-r--r-- 1 named named 432 Aug 26 2004 named.ip6.local
-rw-r--r-- 1 named named 433 Aug 26 2004 named.local
-rw-r--r-- 1 named named 416 Aug 26 2004 named.zero
drwxr-xr-x 2 named named 1024 Jun 7 05:05 slaves

./var/named/data:
total 9
-rw-r--r-- 1 root root 198 Aug 26 2004 localdomain.zone
-rw-r--r-- 1 root root 195 Aug 26 2004 localhost.zone
-rw-r--r-- 1 root root 415 Aug 26 2004 named.broadcast
-rw-r--r-- 1 root root 2518 Aug 26 2004 named.ca
-rw-r--r-- 1 root root 432 Aug 26 2004 named.ip6.local
-rw-r--r-- 1 root root 433 Aug 26 2004 named.local
-rw-r--r-- 1 root root 416 Aug 26 2004 named.zero

./var/named/slaves:
total 0

./var/run:
total 1
drwxr-xr-x 2 named named 1024 Jun 7 06:43 named

./var/run/named:
total 1
-rw-r--r-- 1 named named 6 Jun 7 06:43 named.pid

запустил BIND так
[root@ns3 chroot]# /usr/sbin/named -u named -t /var/named/chroot -c /etc/named.conf

но если посмотреть статус то выдаст:

[root@ns3 chroot]# service named status
rndc: connection to remote host closed
This may indicate that the remote server is using an older version of
the command protocol, this host is not authorized to connect,
or the key is invalid.

В чем тут проблема?

or the key is invalid
rndc.key ты создавал ?
Посмотри логи что в них написано по поводу named при старте ?

sova ★★
()
Ответ на: комментарий от sova

Jun 7 07:32:56 ns3 named[15835]: starting BIND 9.2.4 -u named -t /var/named/chroot
Jun 7 07:32:56 ns3 named[15835]: using 4 CPUs
Jun 7 07:32:56 ns3 named[15835]: loading configuration from '/etc/named.conf'
Jun 7 07:32:56 ns3 named[15835]: no IPv6 interfaces found
Jun 7 07:32:56 ns3 named[15835]: listening on IPv4 interface lo, 127.0.0.1#53
Jun 7 07:32:56 ns3 named[15835]: listening on IPv4 interface venet0:0, ...........#53
Jun 7 07:32:56 ns3 named[15835]: command channel listening on 127.0.0.1#953
Jun 7 07:32:56 ns3 named[15835]: zone 0.in-addr.arpa/IN: loaded serial 42
Jun 7 07:32:56 ns3 named[15835]: zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
Jun 7 07:32:56 ns3 named[15835]: zone 255.in-addr.arpa/IN: loaded serial 42
Jun 7 07:32:56 ns3 named[15835]: zone 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 1997022700
Jun 7 07:32:56 ns3 named[15835]: zone localdomain/IN: loading master file localdomain.zone: file not found
Jun 7 07:32:56 ns3 named[15835]: zone localhost/IN: loading master file localhost.zone: file not found
Jun 7 07:32:56 ns3 named[15835]: running
Jun 7 07:32:56 ns3 named: named startup succeeded
Jun 7 07:33:01 ns3 named[15835]: invalid command from 127.0.0.1#32802: bad auth
Jun 7 07:33:04 ns3 sshd(pam_unix)[15856]: session opened for user namedsync by (uid=0)
Jun 7 07:33:04 ns3 sshd(pam_unix)[15781]: session closed for user namedsync
Jun 7 07:33:05 ns3 sshd(pam_unix)[15957]: session opened for user namedsync by (uid=0)
Jun 7 07:33:05 ns3 sshd(pam_unix)[15957]: session closed for user namedsync
Jun 7 07:33:05 ns3 named[15835]: invalid command from 127.0.0.1#32803: bad auth
Jun 7 07:33:06 ns3 sshd(pam_unix)[15856]: session closed for user namedsync

nervouselectronic
() автор топика

Jun 7 07:32:56 ns3 named[15835]: zone localdomain/IN: loading master file localdomain.zone: file not found
Jun 7 07:32:56 ns3 named[15835]: zone localhost/IN: loading master file localhost.zone: file not found

Это тебе ни о чём не говорит? У тебя bind раборает в chroot-е.. Проверь наличие необходимой конфигурации в chroot-овом корне..

MiracleMan ★★★★★
()

разве в EL4 нет пакета bind-chroot-9.2.4-16.EL4?

anonymous
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.