Страница 1 из 1
bind
Добавлено: 2008-04-11 13:19:13
Гость
Код: Выделить всё
name -a
FreeBSD 7.0-RELEASE FreeBSD 7.0-RELEASE
Проблема:
Код: Выделить всё
rndc start
rndc: connect failed: 127.0.0.1#953: connection refused
/var/log/messages - ничего не говорит
Пробовал решить:
создавал /etc/named/rndc.key, /etc/named/rndc.conf - генирил rndc-confgen`ном
в named.conf включил
Код: Выделить всё
controls {
inet 127.0.0.1 port 953
allow { 127.0.0.1; } keys { "rndc-key"; };
};
...
в rc.conf прописано
ребутался
и ещё много нелогичных действий, которые не стоит упоминать
где туплю?
Re: bind
Добавлено: 2008-04-11 13:44:57
Alex Keda
а намед-то запустил?
Re: bind
Добавлено: 2008-04-11 13:57:19
kapka
Код: Выделить всё
#/sbin/ipfw add 1 deny ip from me to any 53
00001 deny ip from me to any dst-port 53
#rndc stop
#rndc start
rndc: connect failed: 127.0.0.1#953: connection refused
Сначала подумал на файрвол. Но потом такое (после удаления правила №1):
Код: Выделить всё
#rndc start
rndc: connect failed: 127.0.0.1#953: connection refused
#/etc/rc.d/named start
Starting named.
Есть мысли?
Re: bind
Добавлено: 2008-04-11 14:18:17
kapka
Код: Выделить всё
#rndc
Usage: rndc [-c config] [-s server] [-p port]
[-k key-file ] [-y key] [-V] command
command is one of the following:
reload Reload configuration file and zones.
reload zone [class [view]]
Reload a single zone.
refresh zone [class [view]]
Schedule immediate maintenance for a zone.
retransfer zone [class [view]]
Retransfer a single zone without checking serial number.
freeze zone [class [view]]
Suspend updates to a dynamic zone.
thaw zone [class [view]]
Enable updates to a frozen dynamic zone and reload it.
reconfig Reload configuration file and new zones only.
stats Write server statistics to the statistics file.
querylog Toggle query logging.
dumpdb [-all|-cache|-zones] [view ...]
Dump cache(s) to the dump file (named_dump.db).
stop Save pending updates to master files and stop the server.
stop -p Save pending updates to master files and stop the server
reporting process id.
halt Stop the server without saving pending updates.
halt -p Stop the server without saving pending updates reporting
process id.
trace Increment debugging level by one.
trace level Change the debugging level.
notrace Set debugging level to 0.
flush Flushes all of the server's caches.
flush [view] Flushes the server's cache for a view.
flushname name [view]
Flush the given name from the server's cache(s)
status Display status of the server.
recursing Dump the queries that are currently recursing (named.recursing)
*restart Restart the server.
* == not yet implemented
Version: 9.3.3
У него такой команды даже нету... Вот и орет )))
Re: bind
Добавлено: 2008-04-11 15:31:45
Alex Keda
lissyara писал(а):а намед-то запустил?
Re: bind
Добавлено: 2008-04-11 15:44:05
kapka
kapka писал(а):#/etc/rc.d/named start
Starting named.
Re: bind
Добавлено: 2008-04-11 17:00:25
vlater
а намед-то запустил?
нет
не запустился named... проверял sockstat`ом
У него такой команды даже нету... Вот и орет )))
конечно ты прав...
свёл конфиг до минимума, не стартует
подскажите
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";
listen-on { 127.0.0.1; };
};
zone "." { type hint; file "named.root"; };
zone "example.org" {
type master;
file "master/example.org";
};
zone "0.168.192.in-addr.arpa" {
type master;
file "master/192.168.0";
};
examle.org
Код: Выделить всё
$TTL 3600
@ IN SOA example.org. root.example.org. (
20070128 ;
3600 ;
900 ;
3600000 ;
3600 ) ;
IN NS example.org.
192.168.0
Код: Выделить всё
$TTL 3600
@ IN SOA example.org. root.example.org. (
20070128 ;
3600 ;
900 ;
3600000 ;
3600 ) ;
IN NS example.org.
Re: bind
Добавлено: 2008-04-12 19:09:20
lodErunnEr
хм... /etc/rc.d/named forcestart
??
Re: bind
Добавлено: 2008-04-12 19:27:06
Za...
Тебе же говорят, запущен ли он????
Когда сделаешь
смотрим что говорят логи системы
если от named ни чего нет, то тогда смотрим в процессах
Re: bind
Добавлено: 2008-04-13 15:26:28
Гость
Za...
Тебе же говорят, запущен ли он????
lodErunnEr
хм... /etc/rc.d/named forcestart
спасиб
стартанул named! и после перезагрузки поднялся!
а почему не сработал /etc/rc.d/named start?