Error In Configuration File /etc/named.conf
IceVilli New Member Hi I installed ispconfig3 following instructions http://www.howtoforge.com/perfect-server-fedora-14-x86_64-ispconfig-3 Everything looks fine except for the DNS server, it will not start. Error in named configuration: /etc/named.conf:45: open: /etc/named.conf.local: file not foundClick to expand... I tried installing again but I unfortunately get get the exactly the same result. This is the /etc/named.conf // // named.conf // // Provided by Red Hat bind package to configure the ISC BIND named(8) DNS // server as a caching only nameserver (as a localhost DNS resolver only). // // See /usr/share/doc/bind*/sample/ for example named configuration files. // options { listen-on port 53 { 127.0.0.1; }; listen-on-v6 port 53 { ::1; }; directory "/var/named"; dump-file "/var/named/data/cache_dump.db"; statistics-file "/var/named/data/named_stats.txt"; memstatistics-file "/var/named/data/named_mem_stats.txt"; allow-query { localhost; }; recursion yes; dnssec-enable yes; dnssec-validation yes; dnssec-lookaside auto; /* Path to ISC DLV key */ bindkeys-file "/etc/named.iscdlv.key"; managed-keys-directory "/var/named/dynamic"; }; logging { channel default_debug { file "data/named.run"; severity dynamic; }; }; zone "." IN { type hint; file "named.ca"; }; include "/etc/named.rfc1912.zones"; include "/etc/named.root.key"; include "/etc/named.conf.local";Click to expand... Any ideas what could be wrong? IceVilli, May 16, 2011 #1 falko Super Moderator ISPConfig Developer Can you replace the last line with Code: include "/var/named/chroot/var/named/named.local"; and restart BIND? falko, May 16, 2011 #2 IceVilli New Member Hi falco and thank you for quick response. I replaced the last line as you suggested. service named start Error in named configuration: /etc/named.conf:46: open: /var/named/chroot/var/named/named.local: file not foundClick to expand... IceVilli, May 16, 2011 #3 IceVilli New Member Furthermore I can not find any file named "named.local" on the system [[emailprotected] /] # find -name named.local [[emailprotected] /]#Click to expand... Im using Linux version 2.6.35.13-91.fc14.x86_64 IceVilli, May 16, 2011 #4 till Super Moderator Staff Member ISPConfig Developer Did you create already a DNS zone from within ISPConfig? The file you miss is created automatically when you add the first zone. till, May 16, 2011 #5 IceVi
09:50 AMHi all, Ubuntu server 1010 64bit running as VM on Orcle Virtualbox. I followed; DNS (bind9) Configuration HowTo http://glonek.co.uk/linux-server/dns-bind9-configuration-howto/ to config bind9. It went through w/o problem. On restarting bind9; # /etc/init.d/bind9 restart * Stopping domain name service... bind9 ...done. * Starting domain name service... bind9 ...fail! $ tail /var/log/syslog Jan 29 16:43:33 server1 named[2467]: /etc/bind/named.conf.local:9: unknown option 'zone' Jan 29 16:43:33 server1 named[2467]: /etc/bind/named.conf.local:14: unknown option 'zone' Jan 29 https://www.howtoforge.com/community/threads/named-etc-named-conf-local-file-not-found.52679/ 16:43:33 server1 named[2467]: /etc/bind/named.conf.default-zones:2: unknown option 'zone' Jan 29 16:43:33 server1 named[2467]: /etc/bind/named.conf.default-zones:10: unknown option 'zone' Jan 29 16:43:33 server1 named[2467]: /etc/bind/named.conf.default-zones:15: unknown option 'zone' Jan 29 16:43:33 server1 named[2467]: /etc/bind/named.conf.default-zones:20: unknown option 'zone' Jan 29 16:43:33 server1 named[2467]: /etc/bind/named.conf.default-zones:25: unknown option 'zone' Jan 29 16:43:33 server1 named[2467]: /etc/bind/named.conf:12: '}' expected near end of file https://ubuntuforums.org/archive/index.php/t-1916963.html Jan 29 16:43:33 server1 named[2467]: loading configuration: unexpected token Jan 29 16:43:33 server1 named[2467]: exiting (due to fatal error) $ cat /etc/bind/named.conf.local // // Do any local configuration here // // Consider adding the 1918 zones here, if they are not used in your // organization //include "/etc/bind/zones.rfc1918"; zone "server1.domain.com" { type master; file "/etc/bind/zones/server1.domain.com.db"; }; zone "0.168.192.in-addr.arpa" { type master; file "/etc/bind/zones/rev.0.168.192.in-addr.arpa"; }; Pls help. TIA B.R. satimis e79January 29th, 2012, 12:23 PM29 16:43:33 server1 named[2467]: /etc/bind/named.conf:12: '}' expected near end of file post your named.conf: cat /etc/bind/named.conf satimisJanuary 29th, 2012, 03:31 PMpost your named.conf: cat /etc/bind/named.conf $ cat /etc/bind/named.conf // This is the primary configuration file for the BIND DNS server named. // // Please read /usr/share/doc/bind9/README.Debian.gz for information on the // structure of BIND configuration files in Debian, *BEFORE* you customize // this configuration file. // // If you are just adding zones, please do that in /etc/bind/named.conf.local include "/etc/bind/named.conf.options"; include "/etc/bind/named.conf.local"; include "/etc/bind/named.conf.default-zones"; Thanks Edit-1: $ cat /etc/bind/named.con
Start here for a quick overview of the site http://serverfault.com/questions/143924/error-in-bind9-named-conf-file-bind-wont-start Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about https://www.virtualmin.com/node/15347 Stack Overflow the company Business Learn more about hiring developers or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask error in Question _ Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top error in configuration Error in Bind9 named.conf file. Bind won't start up vote 2 down vote favorite 1 I'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... bind9 [fail] So I checked the output of syslog and this is what I get. May 20 18:11:13 empression-server1 named[4700]: starting BIND 9.7.0-P1 -u bind May 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=' May 20 18:11:13 empression-server1 named[4700]: adjusted limit on open files from 1024 to 1048576 May 20 18:11:13 empression-server1 named[4700]: found 4 CPUs, using 4 worker threads May 20 18:1
working with domains Bind /etc/named.conf corrupted when renaming and working with domains Closed (fixed)Project:Virtualmin Virtual ServersPriority:NormalCategory:Bug reportAssigned:UnassignedReporter:steenCreated:Sun, 08/22/2010 - 05:09Updated:Fri, 01/08/2016 - 00:23 Log in or register to update this issue Jump to:Most recent comment Submitted by steen on Sun, 08/22/2010 - 05:09 Hello Folks! I noticed a more severe bug in virtualmin, it knocks down the nameserver bind due to making error in configuration file /etc/named.conf and therefore kills entire site after a server reboot and also prevent adding further domains / renames since named does not reload zones when renamed, maby due to this bug. OS Centos5.5 and latest virtualmin GPL installed from install script, Backend openldap is yummed down, no source compiled appz. all from yum. There is no "hacks" in the configuration, all is made by webmin/virtualmin. We had to simulate some users activities on our coming site setrver for domains, to see that all worked as expected, at first glance it did. After restarting the server bind did not start again. This is what happens (reproducing error, appairs allways). 1. As "root" create domain ing-steen.se, activating rndc (was not activated after virtualmin install scripts, should it not be that ?) and finally adding domain moholm.ing-steen.se 2. Login as moholm and change domain name to moholm.nu 3. Logout 4. Login as root and check bind configuration Observation 1) Nameserver did not reload moholm.nu after renaming the domain! rndc reload moholm.nu rndc: 'reload' failed: not found Observation 2) Running check bind config gives: The following errors were found in the BIND configuration file /etc/named.conf or referenced zone files .. /etc/named.conf:36: expected IP match list element near ';' Ok, thats it, there is problems after the rename, the domain rename has failed to respect "additinally manually configured name servers" in a correct manner. There are two in this setup, added the server template, ns.calltoall.fi. and ns2.ing-steen.se. cat /etc/named.conf options { directory "/etc"; pid-file "/var/run/named/named.pid"; allow-recursion { localnets; 127.0.0.1; }; }; zone "." { type hint; file "/etc/db.cache"; }; zone "ing-steen.se" { type master; file "/var/named/ing-steen.se.ho