{"id":6630,"date":"2014-04-20T13:58:00","date_gmt":"2014-04-20T13:58:00","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/20\/error-in-bind9-named-conf-file-bind-wont-start-collection-of-common-programming-errors\/"},"modified":"2014-04-20T13:58:00","modified_gmt":"2014-04-20T13:58:00","slug":"error-in-bind9-named-conf-file-bind-wont-start-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/20\/error-in-bind9-named-conf-file-bind-wont-start-collection-of-common-programming-errors\/","title":{"rendered":"Error in Bind9 named.conf file. Bind won&#39;t start-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;m trying to setup a DNS server on an Ubuntu Server machine (10.04). I configured an entry in named.conf.local to test it, but when trying to restart bind9 I get the following error:<\/p>\n<pre><code> * Starting domain name service... bind9                                 [fail]\n<\/code><\/pre>\n<p>So I checked the output of syslog and this is what I get.<\/p>\n<pre><code>May 20 18:11:13 empression-server1 named[4700]: starting BIND 9.7.0-P1 -u bind\nMay 20 18:11:13 empression-server1 named[4700]: built with '--prefix=\/usr' '--mandir=\/usr\/share\/man' '--infodir=\/usr\/share\/info' '--sysconfdir=\/etc\/bind' '--localstatedir=\/var' '--enable-threads' '--enable-largefile' '--with-libtool' '--enable-shared' '--enable-static' '--with-openssl=\/usr' '--with-gssapi=\/usr' '--with-gnu-ld' '--with-dlz-postgres=no' '--with-dlz-mysql=no' '--with-dlz-bdb=yes' '--with-dlz-filesystem=yes' '--with-dlz-ldap=yes' '--with-dlz-stub=yes' '--with-geoip=\/usr' '--enable-ipv6' 'CFLAGS=-fno-strict-aliasing -DDIG_SIGCHASE -O2' 'LDFLAGS=-Wl,-Bsymbolic-functions' 'CPPFLAGS='\nMay 20 18:11:13 empression-server1 named[4700]: adjusted limit on open files from 1024 to 1048576\nMay 20 18:11:13 empression-server1 named[4700]: found 4 CPUs, using 4 worker threads\nMay 20 18:11:13 empression-server1 named[4700]: using up to 4096 sockets\nMay 20 18:11:13 empression-server1 named[4700]: loading configuration from '\/etc\/bind\/named.conf'\nMay 20 18:11:13 empression-server1 named[4700]: \/etc\/bind\/named.conf:10: missing ';' before 'include'\nMay 20 18:11:13 empression-server1 named[4700]: loading configuration: failure\nMay 20 18:11:13 empression-server1 named[4700]: exiting (due to fatal error)\n<\/code><\/pre>\n<p>So it thinks I have an error in the default named.conf file, which is pretty ridiculous. I went through it and deleted a blank line just for the hell of it, but I can&#8217;t see how it figures there&#8217;s an error in there. Note that before this I <em>did<\/em> have an error in named.conf.local, but it showed up properly in syslog and I fixed it, so it is reporting the correct file. Here is the contents of named.conf:<\/p>\n<pre><code>\/\/ This is the primary configuration file for the BIND DNS server named.\n\/\/\n\/\/ Please read \/usr\/share\/doc\/bind9\/README.Debian.gz for information on the \n\/\/ structure of BIND configuration files in Debian, *BEFORE* you customize \n\/\/ this configuration file.\n\/\/\n\/\/ If you are just adding zones, please do that in \/etc\/bind\/named.conf.local\ninclude \"\/etc\/bind\/named.conf.options\";\ninclude \"\/etc\/bind\/named.conf.local\";\ninclude \"\/etc\/bind\/named.conf.default-zones\";\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m trying to setup a DNS server on an Ubuntu Server machine (10.04). I configured an entry in named.conf.local to test it, but when trying to restart bind9 I get the following error: * Starting domain name service&#8230; bind9 [fail] So I checked the output of syslog and this is what I get. May 20 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6630","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6630","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6630"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6630\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6630"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6630"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6630"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}