<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: CentOS 4 : chroot DNS with BIND</title>
	<atom:link href="http://www.wains.be/index.php/2007/02/04/centos-chroot-dns-with-bind/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.wains.be/index.php/2007/02/04/centos-chroot-dns-with-bind/</link>
	<description>Linux, Open Source, VoIP and other stuff</description>
	<lastBuildDate>Fri, 03 Sep 2010 21:27:02 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Rashid</title>
		<link>http://www.wains.be/index.php/2007/02/04/centos-chroot-dns-with-bind/#comment-91520</link>
		<dc:creator>Rashid</dc:creator>
		<pubDate>Sun, 13 Jun 2010 13:08:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.wains.be/index.php/2007/02/04/centos-chroot-dns-with-bind/#comment-91520</guid>
		<description>below is my named.conf file

**********************************
[root@vcentos etc]# pwd
/var/named/chroot/etc

***************************
[root@vcentos etc]# cat -n named.conf
     1
     2  include &quot;/etc/rndc.key&quot;;
     3
     4  controls 
     5          {
     6                  inet 127.0.0.1 
     7                  allow { localhost; }
     8                  keys { rndc-key; };
     9          };
    10  options
    11          {
    12          directory             &quot;/var/named&quot;; //the default
    13          dump-file             &quot;data/cache_dump.db&quot;;
    14          statistics-file       &quot;data/named_stats.txt&quot;;
    15          memstatistics-file   &quot;data/named_mem_stats.txe&quot;;
    16          listen-on { 127.0.0.1; 192.168.1.1; };   /*listen refrom the 
    17          allow-query { 127.0.0.1; 192.168.1.0/24; };
    18          };                                  
    19
    20  zone &quot;.&quot; IN 
    21          {
    22                  type hint;
    23                  file &quot;named.root&quot;;
    24          };
    25
    26
    27  zone &quot;localhost&quot; IN 
    28          {
    29                  type master;
    30                  file &quot;localhost.fwd&quot;;
    31                  allow-update { key &quot;rndc.key&quot;; };
    32          };
    33
    34
    35  zone &quot;0.0.127.in-addr.arpa&quot; IN 
    36          {
    37                  type master;
    38                  file &quot;localhost.rev&quot;;
    39                  allow-update { key &quot;rndc.key&quot;; };
    40          };
    41
    42
    43  zone &quot;mydomain.com&quot; IN 
    44          {
    45                  type master;
    46                  file &quot;mydomain.com.fwd&quot;;
    47                  allow-update { key &quot;rndc.key&quot;; };
    48          };
    49
    50  zone &quot;1.168.192.in-addr.arpa&quot; IN 
    51          {
    52                  type master;
    53                  file &quot;mydomain.com.rev&quot;;
    54                  allow-update { key &quot;rndc.key&quot;; };
    55          };
    56
[root@vcentos etc]# 
**************************************************
GETTING ERROR:
*******************************************
[root@vcentos etc]# named-checkconf named.conf
named.conf:57: unexpected end of input 
********************************************
Here is my rndc.conf and rndc.key file both locations same as above.


[root@vcentos etc]# cat -n rndc.key
     1  key &quot;rndc-key&quot; {
     2  algorithm       hmac-md5;
     3  secret          &quot;9FL7Q8Sa0VdmR643AeilIIE52ePguipPLOnDh8544xaaqz13DWSKueBtnxOC&quot;;
     4  };
[root@vcentos etc]# cat -n rndc.conf
     1  include &quot;/etc/rndc.key&quot;;
     2  options {
     3  default-server localhost;
     4  default-key &quot;rndc-key&quot;;
     5  };
     6  server localhost {
     7  key &quot;rndc-key&quot;
     8  };
     9
    10
    11
    12
[root@vcentos etc]# 
***********************************************
BOTH FILES ALSO PRESENT IN /etc/rndc.key    &amp; /etc/rndc.conf.

kindly help me to solve this issue.

Regards,

Rashid</description>
		<content:encoded><![CDATA[<p>below is my named.conf file</p>
<p>**********************************<br />
[root@vcentos etc]# pwd<br />
/var/named/chroot/etc</p>
<p>***************************<br />
[root@vcentos etc]# cat -n named.conf<br />
     1<br />
     2  include &#8220;/etc/rndc.key&#8221;;<br />
     3<br />
     4  controls<br />
     5          {<br />
     6                  inet 127.0.0.1<br />
     7                  allow { localhost; }<br />
     8                  keys { rndc-key; };<br />
     9          };<br />
    10  options<br />
    11          {<br />
    12          directory             &#8220;/var/named&#8221;; //the default<br />
    13          dump-file             &#8220;data/cache_dump.db&#8221;;<br />
    14          statistics-file       &#8220;data/named_stats.txt&#8221;;<br />
    15          memstatistics-file   &#8220;data/named_mem_stats.txe&#8221;;<br />
    16          listen-on { 127.0.0.1; 192.168.1.1; };   /*listen refrom the<br />
    17          allow-query { 127.0.0.1; 192.168.1.0/24; };<br />
    18          };<br />
    19<br />
    20  zone &#8220;.&#8221; IN<br />
    21          {<br />
    22                  type hint;<br />
    23                  file &#8220;named.root&#8221;;<br />
    24          };<br />
    25<br />
    26<br />
    27  zone &#8220;localhost&#8221; IN<br />
    28          {<br />
    29                  type master;<br />
    30                  file &#8220;localhost.fwd&#8221;;<br />
    31                  allow-update { key &#8220;rndc.key&#8221;; };<br />
    32          };<br />
    33<br />
    34<br />
    35  zone &#8220;0.0.127.in-addr.arpa&#8221; IN<br />
    36          {<br />
    37                  type master;<br />
    38                  file &#8220;localhost.rev&#8221;;<br />
    39                  allow-update { key &#8220;rndc.key&#8221;; };<br />
    40          };<br />
    41<br />
    42<br />
    43  zone &#8220;mydomain.com&#8221; IN<br />
    44          {<br />
    45                  type master;<br />
    46                  file &#8220;mydomain.com.fwd&#8221;;<br />
    47                  allow-update { key &#8220;rndc.key&#8221;; };<br />
    48          };<br />
    49<br />
    50  zone &#8220;1.168.192.in-addr.arpa&#8221; IN<br />
    51          {<br />
    52                  type master;<br />
    53                  file &#8220;mydomain.com.rev&#8221;;<br />
    54                  allow-update { key &#8220;rndc.key&#8221;; };<br />
    55          };<br />
    56<br />
[root@vcentos etc]#<br />
**************************************************<br />
GETTING ERROR:<br />
*******************************************<br />
[root@vcentos etc]# named-checkconf named.conf<br />
named.conf:57: unexpected end of input<br />
********************************************<br />
Here is my rndc.conf and rndc.key file both locations same as above.</p>
<p>[root@vcentos etc]# cat -n rndc.key<br />
     1  key &#8220;rndc-key&#8221; {<br />
     2  algorithm       hmac-md5;<br />
     3  secret          &#8220;9FL7Q8Sa0VdmR643AeilIIE52ePguipPLOnDh8544xaaqz13DWSKueBtnxOC&#8221;;<br />
     4  };<br />
[root@vcentos etc]# cat -n rndc.conf<br />
     1  include &#8220;/etc/rndc.key&#8221;;<br />
     2  options {<br />
     3  default-server localhost;<br />
     4  default-key &#8220;rndc-key&#8221;;<br />
     5  };<br />
     6  server localhost {<br />
     7  key &#8220;rndc-key&#8221;<br />
     8  };<br />
     9<br />
    10<br />
    11<br />
    12<br />
[root@vcentos etc]#<br />
***********************************************<br />
BOTH FILES ALSO PRESENT IN /etc/rndc.key    &amp; /etc/rndc.conf.</p>
<p>kindly help me to solve this issue.</p>
<p>Regards,</p>
<p>Rashid</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sébastien Wains</title>
		<link>http://www.wains.be/index.php/2007/02/04/centos-chroot-dns-with-bind/#comment-87686</link>
		<dc:creator>Sébastien Wains</dc:creator>
		<pubDate>Mon, 01 Feb 2010 20:16:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.wains.be/index.php/2007/02/04/centos-chroot-dns-with-bind/#comment-87686</guid>
		<description>1 and 2 are the line numbers as far as I know.

Here&#039;s another example of zone file under section 12.3.3
http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/ref-guide/s1-bind-zone.html</description>
		<content:encoded><![CDATA[<p>1 and 2 are the line numbers as far as I know.</p>
<p>Here&#8217;s another example of zone file under section 12.3.3<br />
<a href="http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/ref-guide/s1-bind-zone.html" rel="nofollow">http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/ref-guide/s1-bind-zone.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ralf Hartings</title>
		<link>http://www.wains.be/index.php/2007/02/04/centos-chroot-dns-with-bind/#comment-87685</link>
		<dc:creator>Ralf Hartings</dc:creator>
		<pubDate>Mon, 01 Feb 2010 20:09:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.wains.be/index.php/2007/02/04/centos-chroot-dns-with-bind/#comment-87685</guid>
		<description>When I copy your zone file from your original post, find/replace &quot;test.be&quot; by &quot;hartings.se&quot; (not changing the IP numbers to make sure I don&#039;t introduce new errors) and restart named, the System Log shows:

Feb  1 20:57:38 server named[6096]: starting BIND 9.2.4 -u named -t /var/named/chroot
Feb  1 20:57:38 server named[6096]: using 2 CPUs
Feb  1 20:57:38 server named[6096]: loading configuration from &#039;/etc/named.conf&#039;
Feb  1 20:57:38 server named[6096]: listening on IPv4 interface lo, 127.0.0.1#53
Feb  1 20:57:38 server named[6096]: listening on IPv4 interface eth0, 192.168.1.93#53
Feb  1 20:57:38 server named[6096]: command channel listening on 127.0.0.1#953
Feb  1 20:57:38 server named[6096]: command channel listening on 192.168.1.93#953
Feb  1 20:57:38 server named[6096]: general: error: dns_master_load: data/hartings.se.zone:2: unexpected end of line
Feb  1 20:57:38 server named[6096]: general: error: dns_master_load: data/hartings.se.zone:1: unexpected end of input
Feb  1 20:57:38 server named[6096]: general: error: zone hartings.se/IN: loading master file data/hartings.se.zone: unexpected end of input
Feb  1 20:57:38 server named[6096]: general: notice: running
Feb  1 20:57:38 server named: named startup succeeded

It seems as if the errors are on line 1 and 2? &quot;unexpected end of input&quot;  and  &quot;unexpected end of line&quot; ????
Or what does &quot;1:&quot; and &quot;2:&quot; mean?
As your file worked, I don&#039;t understand why my &quot;version&quot; would not .....
I am lost!</description>
		<content:encoded><![CDATA[<p>When I copy your zone file from your original post, find/replace &#8220;test.be&#8221; by &#8220;hartings.se&#8221; (not changing the IP numbers to make sure I don&#8217;t introduce new errors) and restart named, the System Log shows:</p>
<p>Feb  1 20:57:38 server named[6096]: starting BIND 9.2.4 -u named -t /var/named/chroot<br />
Feb  1 20:57:38 server named[6096]: using 2 CPUs<br />
Feb  1 20:57:38 server named[6096]: loading configuration from &#8216;/etc/named.conf&#8217;<br />
Feb  1 20:57:38 server named[6096]: listening on IPv4 interface lo, 127.0.0.1#53<br />
Feb  1 20:57:38 server named[6096]: listening on IPv4 interface eth0, 192.168.1.93#53<br />
Feb  1 20:57:38 server named[6096]: command channel listening on 127.0.0.1#953<br />
Feb  1 20:57:38 server named[6096]: command channel listening on 192.168.1.93#953<br />
Feb  1 20:57:38 server named[6096]: general: error: dns_master_load: data/hartings.se.zone:2: unexpected end of line<br />
Feb  1 20:57:38 server named[6096]: general: error: dns_master_load: data/hartings.se.zone:1: unexpected end of input<br />
Feb  1 20:57:38 server named[6096]: general: error: zone hartings.se/IN: loading master file data/hartings.se.zone: unexpected end of input<br />
Feb  1 20:57:38 server named[6096]: general: notice: running<br />
Feb  1 20:57:38 server named: named startup succeeded</p>
<p>It seems as if the errors are on line 1 and 2? &#8220;unexpected end of input&#8221;  and  &#8220;unexpected end of line&#8221; ????<br />
Or what does &#8220;1:&#8221; and &#8220;2:&#8221; mean?<br />
As your file worked, I don&#8217;t understand why my &#8220;version&#8221; would not &#8230;..<br />
I am lost!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sébastien Wains</title>
		<link>http://www.wains.be/index.php/2007/02/04/centos-chroot-dns-with-bind/#comment-87684</link>
		<dc:creator>Sébastien Wains</dc:creator>
		<pubDate>Mon, 01 Feb 2010 19:54:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.wains.be/index.php/2007/02/04/centos-chroot-dns-with-bind/#comment-87684</guid>
		<description>I can&#039;t really tell where the zone file could be wrong from what you pasted in the comments.
Make sure to copy paste my zone file and replace what needs to be replaced.</description>
		<content:encoded><![CDATA[<p>I can&#8217;t really tell where the zone file could be wrong from what you pasted in the comments.<br />
Make sure to copy paste my zone file and replace what needs to be replaced.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ralf Hartings</title>
		<link>http://www.wains.be/index.php/2007/02/04/centos-chroot-dns-with-bind/#comment-87683</link>
		<dc:creator>Ralf Hartings</dc:creator>
		<pubDate>Mon, 01 Feb 2010 19:49:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.wains.be/index.php/2007/02/04/centos-chroot-dns-with-bind/#comment-87683</guid>
		<description>That was a very quick reply !!
I un-commented that section, added the logging function (new code section added to named.conf) created the logging files (query.log and security.log) owned by named in /var/named/chroot/var/named/log and restarted named. The result in the System Log:
Feb  1 20:45:09 server named[6019]: starting BIND 9.2.4 -u named -t /var/named/chroot
Feb  1 20:45:09 server named[6019]: using 2 CPUs
Feb  1 20:45:09 server named[6019]: loading configuration from &#039;/etc/named.conf&#039;
Feb  1 20:45:09 server named[6019]: listening on IPv4 interface lo, 127.0.0.1#53
Feb  1 20:45:09 server named[6019]: listening on IPv4 interface eth0, 192.168.1.93#53
Feb  1 20:45:09 server named[6019]: command channel listening on 127.0.0.1#953
Feb  1 20:45:09 server named[6019]: command channel listening on 192.168.1.93#953
Feb  1 20:45:09 server named[6019]: general: error: dns_rdata_fromtext: data/hartings.se.zone:7: near eol: unexpected end of input
Feb  1 20:45:09 server named[6019]: general: error: zone hartings.se/IN: loading master file data/hartings.se.zone: unexpected end of input
Feb  1 20:45:09 server named[6019]: general: notice: running
Feb  1 20:45:09 server named: named startup succeeded

The content of the query.log is:
Feb 01 20:43:54.183 client 127.0.0.1#50433: query: hartings.se IN A


The security.log file is still empty.

It seems something in wrong in the zone definition file, as you suggested:
   general: error: dns_rdata_fromtext: data/hartings.se.zone:7: near eol: unexpected end of input
   general: error: zone hartings.se/IN: loading master file data/hartings.se.zone: unexpected end of input

Any clue on what is wrong/missing?</description>
		<content:encoded><![CDATA[<p>That was a very quick reply !!<br />
I un-commented that section, added the logging function (new code section added to named.conf) created the logging files (query.log and security.log) owned by named in /var/named/chroot/var/named/log and restarted named. The result in the System Log:<br />
Feb  1 20:45:09 server named[6019]: starting BIND 9.2.4 -u named -t /var/named/chroot<br />
Feb  1 20:45:09 server named[6019]: using 2 CPUs<br />
Feb  1 20:45:09 server named[6019]: loading configuration from &#8216;/etc/named.conf&#8217;<br />
Feb  1 20:45:09 server named[6019]: listening on IPv4 interface lo, 127.0.0.1#53<br />
Feb  1 20:45:09 server named[6019]: listening on IPv4 interface eth0, 192.168.1.93#53<br />
Feb  1 20:45:09 server named[6019]: command channel listening on 127.0.0.1#953<br />
Feb  1 20:45:09 server named[6019]: command channel listening on 192.168.1.93#953<br />
Feb  1 20:45:09 server named[6019]: general: error: dns_rdata_fromtext: data/hartings.se.zone:7: near eol: unexpected end of input<br />
Feb  1 20:45:09 server named[6019]: general: error: zone hartings.se/IN: loading master file data/hartings.se.zone: unexpected end of input<br />
Feb  1 20:45:09 server named[6019]: general: notice: running<br />
Feb  1 20:45:09 server named: named startup succeeded</p>
<p>The content of the query.log is:<br />
Feb 01 20:43:54.183 client 127.0.0.1#50433: query: hartings.se IN A</p>
<p>The security.log file is still empty.</p>
<p>It seems something in wrong in the zone definition file, as you suggested:<br />
   general: error: dns_rdata_fromtext: data/hartings.se.zone:7: near eol: unexpected end of input<br />
   general: error: zone hartings.se/IN: loading master file data/hartings.se.zone: unexpected end of input</p>
<p>Any clue on what is wrong/missing?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sébastien Wains</title>
		<link>http://www.wains.be/index.php/2007/02/04/centos-chroot-dns-with-bind/#comment-87681</link>
		<dc:creator>Sébastien Wains</dc:creator>
		<pubDate>Mon, 01 Feb 2010 19:26:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.wains.be/index.php/2007/02/04/centos-chroot-dns-with-bind/#comment-87681</guid>
		<description>You need that section, please uncomment and restart named and check the logs.
I believe it&#039;s a permission error on the zone file.</description>
		<content:encoded><![CDATA[<p>You need that section, please uncomment and restart named and check the logs.<br />
I believe it&#8217;s a permission error on the zone file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ralf Hartings</title>
		<link>http://www.wains.be/index.php/2007/02/04/centos-chroot-dns-with-bind/#comment-87680</link>
		<dc:creator>Ralf Hartings</dc:creator>
		<pubDate>Mon, 01 Feb 2010 19:23:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.wains.be/index.php/2007/02/04/centos-chroot-dns-with-bind/#comment-87680</guid>
		<description>Sébastien, 

Thanks for looking into this!. Here is my named.conf:

//
// named.conf for Red Hat caching-nameserver 
//


key &quot;rndckey&quot; {
 	algorithm hmac-md5;
 	secret &quot;PtBS0MY+OXRXjk/iRgtlcw==&quot;;
};
 
// we assume our server has the IP 192.168.254.207 serving the 192.168.254.0/24 subnet
controls {
inet 127.0.0.1 allow { 127.0.0.1; } keys { &quot;rndckey&quot;; };
inet 192.168.1.93 allow { 192.168.1.0/24; } keys { &quot;rndckey&quot;; };
};

options {
	directory &quot;/var/named&quot;;
	pid-file &quot;/var/run/named/named.pid&quot;;
	dump-file &quot;/var/named/data/cache_dump.db&quot;;
        statistics-file &quot;/var/named/data/named_stats.txt&quot;;

recursion yes;

allow-recursion {
127.0.0.1;
192.168.1.0/24;
};

// these are the opendns servers (optional)
forwarders {
213.50.29.170;
81.216.65.12;
195.58.112.157;
};

listen-on {
127.0.0.1;
192.168.1.93;
};


//query-source address * port 53;

// so people can&#039;t try to guess what version you&#039;re running
version &quot;REFUSED&quot;;

allow-query {
127.0.0.1;
192.168.1.0/24;
};
};

server 192.168.1.93 {
keys { rndckey; };
};

zone &quot;.&quot; IN {
	type hint;
	file &quot;named.ca&quot;;
};

#zone &quot;hartings.se&quot; IN {
#type master;
#file &quot;data/hartings.se.zone&quot;;
#allow-transfer { key TRANSFER; };
#};

---------

When I uncomment the last section, the result is:

[root@server etc]# nslookup hartings.se 127.0.0.1
Server:         127.0.0.1
Address:        127.0.0.1#53
** server can&#039;t find hartings.se: SERVFAIL
[root@server etc]#

I thought for a moment that this section should be in there, but this is not correct it seems.

/Ralf</description>
		<content:encoded><![CDATA[<p>Sébastien, </p>
<p>Thanks for looking into this!. Here is my named.conf:</p>
<p>//<br />
// named.conf for Red Hat caching-nameserver<br />
//</p>
<p>key &#8220;rndckey&#8221; {<br />
 	algorithm hmac-md5;<br />
 	secret &#8220;PtBS0MY+OXRXjk/iRgtlcw==&#8221;;<br />
};</p>
<p>// we assume our server has the IP 192.168.254.207 serving the 192.168.254.0/24 subnet<br />
controls {<br />
inet 127.0.0.1 allow { 127.0.0.1; } keys { &#8220;rndckey&#8221;; };<br />
inet 192.168.1.93 allow { 192.168.1.0/24; } keys { &#8220;rndckey&#8221;; };<br />
};</p>
<p>options {<br />
	directory &#8220;/var/named&#8221;;<br />
	pid-file &#8220;/var/run/named/named.pid&#8221;;<br />
	dump-file &#8220;/var/named/data/cache_dump.db&#8221;;<br />
        statistics-file &#8220;/var/named/data/named_stats.txt&#8221;;</p>
<p>recursion yes;</p>
<p>allow-recursion {<br />
127.0.0.1;<br />
192.168.1.0/24;<br />
};</p>
<p>// these are the opendns servers (optional)<br />
forwarders {<br />
213.50.29.170;<br />
81.216.65.12;<br />
195.58.112.157;<br />
};</p>
<p>listen-on {<br />
127.0.0.1;<br />
192.168.1.93;<br />
};</p>
<p>//query-source address * port 53;</p>
<p>// so people can&#8217;t try to guess what version you&#8217;re running<br />
version &#8220;REFUSED&#8221;;</p>
<p>allow-query {<br />
127.0.0.1;<br />
192.168.1.0/24;<br />
};<br />
};</p>
<p>server 192.168.1.93 {<br />
keys { rndckey; };<br />
};</p>
<p>zone &#8220;.&#8221; IN {<br />
	type hint;<br />
	file &#8220;named.ca&#8221;;<br />
};</p>
<p>#zone &#8220;hartings.se&#8221; IN {<br />
#type master;<br />
#file &#8220;data/hartings.se.zone&#8221;;<br />
#allow-transfer { key TRANSFER; };<br />
#};</p>
<p>&#8212;&#8212;&#8212;</p>
<p>When I uncomment the last section, the result is:</p>
<p>[root@server etc]# nslookup hartings.se 127.0.0.1<br />
Server:         127.0.0.1<br />
Address:        127.0.0.1#53<br />
** server can&#8217;t find hartings.se: SERVFAIL<br />
[root@server etc]#</p>
<p>I thought for a moment that this section should be in there, but this is not correct it seems.</p>
<p>/Ralf</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sébastien Wains</title>
		<link>http://www.wains.be/index.php/2007/02/04/centos-chroot-dns-with-bind/#comment-87679</link>
		<dc:creator>Sébastien Wains</dc:creator>
		<pubDate>Mon, 01 Feb 2010 19:10:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.wains.be/index.php/2007/02/04/centos-chroot-dns-with-bind/#comment-87679</guid>
		<description>Ralf,

Can you show me the content of your named.conf file ?
(I&#039;m aware of the URL rewritten in the comments, I need to fix that)

Thanks</description>
		<content:encoded><![CDATA[<p>Ralf,</p>
<p>Can you show me the content of your named.conf file ?<br />
(I&#8217;m aware of the URL rewritten in the comments, I need to fix that)</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ralf Hartings</title>
		<link>http://www.wains.be/index.php/2007/02/04/centos-chroot-dns-with-bind/#comment-87634</link>
		<dc:creator>Ralf Hartings</dc:creator>
		<pubDate>Sun, 31 Jan 2010 15:12:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.wains.be/index.php/2007/02/04/centos-chroot-dns-with-bind/#comment-87634</guid>
		<description>Please note that the line &quot; http://www.hartings.se&quot; in my first comment is not the original line in the file. In the file it is www dot hartings dot se (replace dot by &quot;.&quot;).
While pasting the line on the website, it became automatically an URL address, beyond my control. So this is not a typo :-)

Thanks
/Ralf</description>
		<content:encoded><![CDATA[<p>Please note that the line &#8221; <a href="http://www.hartings.se" rel="nofollow">http://www.hartings.se</a>&#8221; in my first comment is not the original line in the file. In the file it is www dot hartings dot se (replace dot by &#8220;.&#8221;).<br />
While pasting the line on the website, it became automatically an URL address, beyond my control. So this is not a typo <img src='http://www.wains.be/wp-content/plugins/tango/face-smile.png' alt=':-)' class='wp-smiley' /> </p>
<p>Thanks<br />
/Ralf</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ralf Hartings</title>
		<link>http://www.wains.be/index.php/2007/02/04/centos-chroot-dns-with-bind/#comment-87632</link>
		<dc:creator>Ralf Hartings</dc:creator>
		<pubDate>Sun, 31 Jan 2010 15:06:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.wains.be/index.php/2007/02/04/centos-chroot-dns-with-bind/#comment-87632</guid>
		<description>Hi, Thanks, for a first -complete- template to get the BIND running on CENTOS!

Please see my situation/question below. I would really appreciate your input/comments on where to look...

My situation:
- I run CENTOS 4.8 on my server.
- I need to set up a nameserver for my internal network
- I installed yum install bind bind-chroot bind-libs bind-utils caching-nameserver
- http/mail/nameserver is 192.168.1.93 , all in one ! My external IP is 87.227.107.21 (shown in nameserver reply below)
- I do not have a MX record (but copied the MX lines anyhow - does not make any difference in the result)
- Only the open/external DNS servers reply on request - not my own nameserver  :-(
- Where is the mistake?? I did check for typo&#039;s (twice) and I did check the internet and tried several changes, with no luck....

From /var/log/messages:
Jan 31 11:38:44 server named[31244]: starting BIND 9.2.4 -u named -t /var/named/chroot
Jan 31 11:38:44 server named[31244]: using 2 CPUs
Jan 31 11:38:44 server named[31244]: loading configuration from &#039;/etc/named.conf&#039;
Jan 31 11:38:44 server named[31244]: listening on IPv4 interface lo, 127.0.0.1#53
Jan 31 11:38:44 server named[31244]: listening on IPv4 interface eth0, 192.168.1.93#53
Jan 31 11:38:44 server named[31244]: command channel listening on 127.0.0.1#953
Jan 31 11:38:44 server named[31244]: command channel listening on 192.168.1.93#953
Jan 31 11:38:44 server named[31244]: running
Jan 31 11:38:44 server named: named startup succeeded

[root@server etc]# rndc status
number of zones: 1
debug level: 0
xfers running: 0
xfers deferred: 0
soa queries in progress: 0
query logging is OFF
server is up and running
[root@server etc]#

[root@server etc]# more /var/named/chroot/var/named/data/hartings.se.zone
$ttl 38400
hartings.se. IN SOA ns.hartings.se. (
2007020400 ; Serial
10800 ; Refresh after 3 hours
3600 ; Retry after 1 hour
604800 ; Expire after 1 week
86400 ) ; Minimum TTL of 1 day
hartings.se. IN NS ns.hartings.se.

www.hartings.se. IN A 192.168.1.93
ns.hartings.se. IN A 192.168.1.93
[root@server etc]#

[root@server etc]# nslookup hartings.se 127.0.0.1
Server:         127.0.0.1
Address:        127.0.0.1#53

Non-authoritative answer:
Name:   hartings.se
Address: 87.227.107.21

[root@server etc]# 

What could be wrong here?? Thanks for any hints that could help me!  I appreciate you took your time to read this!
/Ralf</description>
		<content:encoded><![CDATA[<p>Hi, Thanks, for a first -complete- template to get the BIND running on CENTOS!</p>
<p>Please see my situation/question below. I would really appreciate your input/comments on where to look&#8230;</p>
<p>My situation:<br />
- I run CENTOS 4.8 on my server.<br />
- I need to set up a nameserver for my internal network<br />
- I installed yum install bind bind-chroot bind-libs bind-utils caching-nameserver<br />
- http/mail/nameserver is 192.168.1.93 , all in one ! My external IP is 87.227.107.21 (shown in nameserver reply below)<br />
- I do not have a MX record (but copied the MX lines anyhow &#8211; does not make any difference in the result)<br />
- Only the open/external DNS servers reply on request &#8211; not my own nameserver  <img src='http://www.wains.be/wp-content/plugins/tango/face-sad.png' alt=':-(' class='wp-smiley' /><br />
- Where is the mistake?? I did check for typo&#8217;s (twice) and I did check the internet and tried several changes, with no luck&#8230;.</p>
<p>From /var/log/messages:<br />
Jan 31 11:38:44 server named[31244]: starting BIND 9.2.4 -u named -t /var/named/chroot<br />
Jan 31 11:38:44 server named[31244]: using 2 CPUs<br />
Jan 31 11:38:44 server named[31244]: loading configuration from &#8216;/etc/named.conf&#8217;<br />
Jan 31 11:38:44 server named[31244]: listening on IPv4 interface lo, 127.0.0.1#53<br />
Jan 31 11:38:44 server named[31244]: listening on IPv4 interface eth0, 192.168.1.93#53<br />
Jan 31 11:38:44 server named[31244]: command channel listening on 127.0.0.1#953<br />
Jan 31 11:38:44 server named[31244]: command channel listening on 192.168.1.93#953<br />
Jan 31 11:38:44 server named[31244]: running<br />
Jan 31 11:38:44 server named: named startup succeeded</p>
<p>[root@server etc]# rndc status<br />
number of zones: 1<br />
debug level: 0<br />
xfers running: 0<br />
xfers deferred: 0<br />
soa queries in progress: 0<br />
query logging is OFF<br />
server is up and running<br />
[root@server etc]#</p>
<p>[root@server etc]# more /var/named/chroot/var/named/data/hartings.se.zone<br />
$ttl 38400<br />
hartings.se. IN SOA ns.hartings.se. (<br />
2007020400 ; Serial<br />
10800 ; Refresh after 3 hours<br />
3600 ; Retry after 1 hour<br />
604800 ; Expire after 1 week<br />
86400 ) ; Minimum TTL of 1 day<br />
hartings.se. IN NS ns.hartings.se.</p>
<p><a href="http://www.hartings.se" rel="nofollow">http://www.hartings.se</a>. IN A 192.168.1.93<br />
ns.hartings.se. IN A 192.168.1.93<br />
[root@server etc]#</p>
<p>[root@server etc]# nslookup hartings.se 127.0.0.1<br />
Server:         127.0.0.1<br />
Address:        127.0.0.1#53</p>
<p>Non-authoritative answer:<br />
Name:   hartings.se<br />
Address: 87.227.107.21</p>
<p>[root@server etc]# </p>
<p>What could be wrong here?? Thanks for any hints that could help me!  I appreciate you took your time to read this!<br />
/Ralf</p>
]]></content:encoded>
	</item>
</channel>
</rss>
