<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Linux Forum &mdash; Не поднимается bind]]></title>
	<link rel="self" href="https://linuxforum.ru/extern.php?action=feed&amp;tid=2782&amp;type=atom" />
	<updated>2010-04-19T05:01:33Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=2782</id>
		<entry>
			<title type="html"><![CDATA[Re: Не поднимается bind]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=37869#p37869" />
			<content type="html"><![CDATA[<p>Инструкции по настройке named смотрите тут:<br /><a href="http://centos.org/docs/5/html/Deployment_Guide-en-US/ch-bind.html">http://centos.org/docs/5/html/Deploymen … -bind.html</a><br /><a href="http://unix-notes.ru/2009/09/14/ustanovka-bind-named-na-centos/">http://unix-notes.ru/2009/09/14/ustanov … na-centos/</a></p>]]></content>
			<author>
				<name><![CDATA[Hrafn]]></name>
			</author>
			<updated>2010-04-19T05:01:33Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=37869#p37869</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Не поднимается bind]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=37794#p37794" />
			<content type="html"><![CDATA[<p>Всем доброго времени суток!<br />Помогите пожалуйсто с настройкой bind. Проблема такая:<br />Поставил бинд в chroot окружении, на centOS 5.4, но он чего-то при попытки запуска пишет &quot;СБОЙ&quot;, просмотрел в логах, так там написано : &quot;Apr 19 00:31:53 centos named[31700]: the working directory is not writable&quot;.<br />Уже и права &quot;777&quot; давал, и юзера named в root группу переводил, бестолку. Поиски в гугле результатов не дали, мож не так смотрел... <img src="https://linuxforum.ru/img/smilies/ac.gif" alt="ac" /><br />ip сервера - 192.168.1.3<br />Подскажите плиз, что сделать можно, или хотяб на подобную тему ссылку киньте.<br />Заранее спасибо!<br />Вот логи:<br /></p><div class="codebox"><pre><code>Apr 19 00:13:27 centos named[31528]: starting BIND 9.3.6-P1-RedHat-9.3.6-4.P1.el5_4.2 -u named -D -t /var/named/chroot
Apr 19 00:13:27 centos named[31528]: adjusted limit on open files from 1024 to 1048576
Apr 19 00:13:27 centos named[31528]: found 1 CPU, using 1 worker thread
Apr 19 00:13:27 centos named[31528]: using up to 4096 sockets
Apr 19 00:13:27 centos named[31528]: loading configuration from &#039;/etc/named.conf&#039;
Apr 19 00:13:27 centos named[31528]: using default UDP/IPv4 port range: [1024, 65535]
Apr 19 00:13:27 centos named[31528]: using default UDP/IPv6 port range: [1024, 65535]
Apr 19 00:13:27 centos named[31528]: listening on IPv4 interface lo, 127.0.0.1#53
Apr 19 00:13:27 centos named[31528]: listening on IPv4 interface eth0, 192.168.1.3#53
Apr 19 00:13:27 centos named[31528]: /etc/named.conf:5: using specific query-source port suppresses port randomization and can be insecure.
Apr 19 00:13:27 centos named[31528]: /etc/named.conf:6: using specific query-source port suppresses port randomization and can be insecure.
Apr 19 00:13:27 centos named[31528]: command channel listening on 127.0.0.1#953
Apr 19 00:13:27 centos named[31528]: command channel listening on ::1#953
Apr 19 00:13:27 centos kernel: printk: 2568 messages suppressed.
Apr 19 00:13:27 centos kernel: type=1400 audit(1271614407.950:6372): avc:  denied  { write } for  pid=31529 comm=&quot;named&quot; name=&quot;named&quot; dev=hda1 ino=325658 scontext=root:system_r:named_t:s0 tcontext=system_u:object_r:named_zone_t:s0 tclass=dir
Apr 19 00:13:27 centos named[31528]: the working directory is not writable
Apr 19 00:13:27 centos named[31528]: zone 0.in-addr.arpa/IN: loaded serial 42
Apr 19 00:13:27 centos named[31528]: zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
Apr 19 00:13:27 centos named[31528]: zone 168.192.in-addr.arpa/IN: loaded serial 2004071001
Apr 19 00:13:27 centos named[31528]: zone 255.in-addr.arpa/IN: loaded serial 42
Apr 19 00:13:27 centos named[31528]: 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
Apr 19 00:13:27 centos named[31528]: test.kz:13: ignoring out-of-zone data (centos)
Apr 19 00:13:27 centos named[31528]: test.kz:14: ignoring out-of-zone data (proxy)
Apr 19 00:13:27 centos named[31528]: zone test.kz/IN: loaded serial 2004071001
Apr 19 00:13:27 centos named[31528]: zone localdomain/IN: loaded serial 42
Apr 19 00:13:27 centos named[31528]: zone localhost/IN: loaded serial 42
Apr 19 00:13:27 centos kernel: type=1400 audit(1271614407.964:6373): avc:  denied  { write } for  pid=31529 comm=&quot;named&quot; name=&quot;named&quot; dev=hda1 ino=325658 scontext=root:system_r:named_t:s0 tcontext=system_u:object_r:named_zone_t:s0 tclass=dir
Apr 19 00:31:53 centos named[31700]: starting BIND 9.3.6-P1-RedHat-9.3.6-4.P1.el5_4.2 -u named -D -t /var/named/chroot
Apr 19 00:31:53 centos named[31700]: adjusted limit on open files from 1024 to 1048576
Apr 19 00:31:53 centos named[31700]: found 1 CPU, using 1 worker thread
Apr 19 00:31:53 centos named[31700]: using up to 4096 sockets
Apr 19 00:31:53 centos named[31700]: loading configuration from &#039;/etc/named.conf&#039;
Apr 19 00:31:53 centos named[31700]: using default UDP/IPv4 port range: [1024, 65535]
Apr 19 00:31:53 centos named[31700]: using default UDP/IPv6 port range: [1024, 65535]
Apr 19 00:31:53 centos named[31700]: listening on IPv4 interface lo, 127.0.0.1#53
Apr 19 00:31:53 centos named[31700]: listening on IPv4 interface eth0, 192.168.1.3#53
Apr 19 00:31:53 centos named[31700]: /etc/named.conf:5: using specific query-source port suppresses port randomization and can be insecure.
Apr 19 00:31:53 centos named[31700]: /etc/named.conf:6: using specific query-source port suppresses port randomization and can be insecure.
Apr 19 00:31:53 centos named[31700]: command channel listening on 127.0.0.1#953
Apr 19 00:31:53 centos named[31700]: command channel listening on ::1#953
Apr 19 00:31:53 centos kernel: type=1400 audit(1271615513.439:6374): avc:  denied  { write } for  pid=31701 comm=&quot;named&quot; name=&quot;named&quot; dev=hda1 ino=325658 scontext=root:system_r:named_t:s0 tcontext=system_u:object_r:named_zone_t:s0 tclass=dir
Apr 19 00:31:53 centos named[31700]: the working directory is not writable
Apr 19 00:31:53 centos named[31700]: zone 0.in-addr.arpa/IN: loaded serial 42
Apr 19 00:31:53 centos named[31700]: zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
Apr 19 00:31:53 centos named[31700]: zone 168.192.in-addr.arpa/IN: loaded serial 2004071001
Apr 19 00:31:53 centos named[31700]: zone 255.in-addr.arpa/IN: loaded serial 42
Apr 19 00:31:53 centos named[31700]: 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
Apr 19 00:31:53 centos named[31700]: test.kz:13: ignoring out-of-zone data (centos)
Apr 19 00:31:53 centos named[31700]: test.kz:14: ignoring out-of-zone data (proxy)
Apr 19 00:31:53 centos named[31700]: zone test.kz/IN: loaded serial 2004071001
Apr 19 00:31:53 centos named[31700]: zone localdomain/IN: loaded serial 42
Apr 19 00:31:53 centos named[31700]: zone localhost/IN: loaded serial 42
Apr 19 00:31:53 centos kernel: type=1400 audit(1271615513.450:6375): avc:  denied  { write } for  pid=31701 comm=&quot;named&quot; name=&quot;named&quot; dev=hda1 ino=325658 scontext=root:system_r:named_t:s0 tcontext=system_u:object_r:named_zone_t:s0 tclass=dir</code></pre></div><p>Вот named.conf :<br /></p><div class="codebox"><pre><code>options {

listen-on port 53 { any; };

query-source port 53;
query-source-v6 port 53;

directory &quot;/var/named&quot;;
dump-file &quot;/var/named/data/cache_dump.db&quot;;
statistics-file &quot;/var/named/data/named_stats.txt&quot;;
memstatistics-file &quot;/var/named/data/named_mem_stats.txt&quot;;
listen-on       {192.168.1.3;};
allow-query     { any; };
allow-recursion { any; };
recursion yes;
};

zone &quot;test.kz&quot; IN {
type master;
file &quot;test.kz&quot;;
};
zone &quot;168.192.in-addr.arpa&quot; {
type master;
file &quot;168.192.rev&quot;;
};
include &quot;/etc/named.rfc1912.zones&quot;;</code></pre></div><p>Зоны:<br /></p><div class="codebox"><pre><code>$ttl 38400
@       SOA     centos.test.kz.  support.test.kz. (

           2004071001 ;serial
           108000 ;refresh
           1800 ;retry
           1209600 ;expiry
           604800)

        IN      NS      centos.test.kz.

@       IN      A       192.168.1.3
centos. IN      A       192.168.1.3
proxy.  IN      A       192.168.1.7</code></pre></div><div class="codebox"><pre><code>$ttl 38400
@       IN      SOA     centos.test.kz. support.test.kz. (

           2004071001 ;serial
           108000 ;refresh
           1800 ;retry
           1209600 ;expiry
           604800) ;ttl

        IN      NS      centos.test.kz.
3.1     IN      PTR     centos.test.kz.
7.1     IN      PTR     proxy.</code></pre></div>]]></content>
			<author>
				<name><![CDATA[shigol]]></name>
				<uri>https://linuxforum.ru/profile.php?id=6112</uri>
			</author>
			<updated>2010-04-18T19:06:31Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=37794#p37794</id>
		</entry>
</feed>
