Error In Named Configuration Zone Localhost/in Loaded Serial 42
Member Hi All, I am trying to setup DNS on my centOS server. I am using bind software to setup DNS. The following errors have getting. ================================================== ===== Error in named configuration: zone localdomain/IN: loaded serial 42 zone localhost/IN: loaded serial 42 zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700 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 zone 255.in-addr.arpa/IN: loaded serial 42 zone 0.in-addr.arpa/IN: loaded serial 42 ================================================== ===== Thank you in advanced phpconnect, Apr 1, 2011 #1 falko Super Moderator ISPConfig Developer Did you check your named.conf and the included zone files for syntax errors? falko, Apr 3, 2011 #2 phpconnect New Member Hello, still i am getting following errors [highlight] Error in named configuration: zone localdomain/IN: loaded serial 42 zone localhost/IN: loaded serial 42 zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700 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 zone 255.in-addr.arpa/IN: loaded serial 42 zone 0.in-addr.arpa/IN: loaded serial 42 dns_rdata_fromtext: /var/named/test.com.zone:7: near eol: unexpected end of input zone test.com/IN: loading master file /var/named/test.com.zone: unexpected end of input internal/test.com/IN: unexpected end of input dns_rdata_fromtext: /var/named/test.com.zone:7: near eol: unexpected end of input zone test.com/IN: loading master file /var/named/test.com.zone: unexpected end of input external/test.com/IN: unexpected end of input [/highlight] Please check bellow my configuration files named.conf Code: include "/etc/rndc.key"; controls { inet 127.0.0.1 allow { localhost; } keys { "rndc-key"; }; }; options { /* make named use port 53 for the source of all queries, to allow * firewalls to block all ports except 53: */ // query-source port 53; /* We no longer enable this by default as the dns posion exploit has forced many providers to open up their firewalls a bit */ // Put files that named is allowed to write in the data/ directory: directory "/var/named"; // the default pid-file "/var/run/named/named.pid"; dump-file "data/cache_dump.db"; statistics-file "data/named_stats.txt"; /* memstatistics-file "data/named_mem_stats.txt"; */ allow-transfer {"none";}; }; logging { /* If you want to enable debugging, eg. using the 'rndc trace' command, * named will try to write the 'named.run' file in the $directory (/var/named"). * By default, SELinux policy does not allow named to modify the /var/named
BIND /DNS NameServer is not working . Bind server have errors General support questions Post Reply Print view Search Advanced search 5 posts • Page 1 of 1 CHFI Posts: 3 Joined: 2013/05/21 06:27:17 Error in named configuration: BIND /DNS NameServer is not working . Bind server have errors Quote Postby CHFI » 2013/05/21 06:57:43 But my Bind is not working now I am getting the following errors . I am using CENT OS .Error in named configuration:zone localhost.localdomain/IN: https://www.howtoforge.com/community/threads/domain-name-server-installation-issue-in-centos.52124/ loaded serial 0zone localhost/IN: loaded serial 0zone 1.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 0zone 1.0.0.127.in-addr.arpa/IN: loaded serial 0zone 0.in-addr.arpa/IN: loaded serial 0zone ihab.com/IN: loading from master file /var/named/chroot/var/named/ihab.com.forward failed: file not foundzone ihab.com/IN: not loaded due to errors._default/ihab.com/IN: file not found Top TrevorH Forum Moderator Posts: 16785 Joined: 2009/09/24 10:40:56 Location: Brighton, UK Error in named configuration: BIND /DNS NameServer is not http://www.centos.org/forums/viewtopic.php?t=4083 wo Quote Postby TrevorH » 2013/05/21 09:24:33 zone ihab.com/IN: loading from master file /var/named/chroot/var/named/ihab.com.forward failed: file not foundYou have a file missing that it helpfully told you about. Top CHFI Posts: 3 Joined: 2013/05/21 06:27:17 Re: Error in named configuration: BIND /DNS NameServer is not working . Bind server have errors Quote Postby CHFI » 2013/05/22 06:25:30 dear ,file already created and it there .any solution Top TrevorH Forum Moderator Posts: 16785 Joined: 2009/09/24 10:40:56 Location: Brighton, UK Re: Error in named configuration: BIND /DNS NameServer is not working . Bind server have errors Quote Postby TrevorH » 2013/05/22 09:24:23 Then check again to make sure that it really exists and if the error message has changed. If you are using a chrooted bind setup, then the path you specify in the config file should not include the /var/named/chroot portion of the filename or it'll end up looking for /var/named/chroot/var/named/chroot/var/named/ihab.com.forward Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Post Reply Print v
Monit Nagios NRPE Network Services DHCP DNS FTP Databases MySQL MariaDB MongoDB PostgreSQL SQL Server Amazon Web Services Submit http://tecadmin.net/check-dns-configuration-file-bind/ Article About Us Home Ubuntu 16.04 Whats New ? Install JAVA 8 Setup LAMP Stack Install LEMP Stack Install Node.js Install Git Move Unity Launcher to Bottom FeedBack Funny Tools Tutorials Linux Distributions CentOS Debian Fedora LinuxMint Monitoring Tools Monit Nagios NRPE Network Services DHCP DNS FTP Databases MySQL MariaDB MongoDB PostgreSQL SQL error in Server Amazon Web Services Submit Article About Us 04 April 2013 How to Check DNS ( BIND ) Configuration File Written by Rahul K. Linux Tutorials Leave a Comment Command named-checkconf checks the syntax only of a named ( bind ) configuration file. The file is parsed and checked for syntax errors, along with error in named all files included by it. If there are no file is specified with command, /etc/named.conf is read by default. Tip 1: Check DNS (Bind) Configuration In case of any changes done in bind configuration, I recommend to check dns configuration file before restarting service. # named-checkconf /etc/named.conf If bind is running in chroot environment use below command also along with above command # named-checkconf -t /var/named/chroot /etc/named.conf Above command will show nothing if there are no error found in configuration file. In case of any error will displayed as output. Tip 2: Check Bind Zone File To check the syntax of zone file use command as below. It will show result in both cases. # named-checkzone demotecadmin.net /var/named/demotecadmin.net.db Sample output; zone demotecadmin.net/IN: loaded serial 3013040200 OK Tip 3: Check Configuration file in Older version of Bind If you are using older version of bind, you can have also check the configuration using below command. # service named configtest Sampl