LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-02-2018, 01:29 AM   #1
valihcl
LQ Newbie
 
Registered: Aug 2018
Posts: 1

Rep: Reputation: Disabled
Error in named configuration


Hello floks,

Please Help me on this, Getting error on the /etc/name.conf file, it shows all configurations look good but don't know why this error hitting can anyone suggest on this. attache all config below with error.


[root@sparkly ~]# service named restart
Stopping named: [ OK ]
Starting named:
Error in named configuration:
/etc/named.conf:47: unknown option 'izone'
/etc/named.conf:57: unexpected token near end of file
[FAILED]
#####################################################################

[root@sparkly ~]# cat /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; 192.168.121.10; };
# 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; any; };
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";

####################################################################

[root@sparkly ~]# named-checkconf /etc/named.conf
[root@sparkly ~]# named-checkconf /etc/named.rfc1912.zones
[root@sparkly ~]# named-checkzone flz /var/named/dell.forward
zone flz/IN: loaded serial 0
OK
[root@sparkly ~]# named-checkzone flz /var/named/dell.reverse
zone flz/IN: loaded serial 0
OK
[root@sparkly ~]#
[root@sparkly ~]# service named restart
Stopping named: [ OK ]
Starting named:
Error in named configuration:
/etc/named.conf:47: unknown option 'izone'
/etc/named.conf:57: unexpected token near end of file
[FAILED]
 
Old 08-02-2018, 06:36 PM   #2
scasey
Senior Member
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.6
Posts: 3,830

Rep: Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294
Please place commands and output in [code] tags.

I'll bite: What's on line 47 in /etc/named.conf? On line 57?

And why is there a comment in front of the zone definition for hint?
 
1 members found this post helpful.
Old 08-03-2018, 07:23 AM   #3
rtmistler
Moderator
 
Registered: Mar 2011
Location: MA, USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 8,064
Blog Entries: 13

Rep: Reputation: 3505Reputation: 3505Reputation: 3505Reputation: 3505Reputation: 3505Reputation: 3505Reputation: 3505Reputation: 3505Reputation: 3505Reputation: 3505Reputation: 3505
Pretty much everything scasey said. Also pointing out that izone does not appear in your cat of the file, yet it shows in your error report. Additionally, your cat of this file does not reveal a file that is as lengthy as the error messages indicate.

Please follow the requests already made by scasey and give members additional information.
 
Old 08-04-2018, 04:40 AM   #4
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004
I would try removing the '#' on line 47.
 
Old 08-07-2018, 12:38 AM   #5
X-LFS-2010
Member
 
Registered: Apr 2016
Posts: 423

Rep: Reputation: Disabled
most ISP don't want you running "a full named server" because it can cause their systems issues, and they charge extra for ability to run servers (however unfair that is, is not the point)

if your your going to run your own nameserver, which can effect operations on other computers, than you should be able to solve issues yourself

you shouldn't activate it unless you know how it works and have tested it isn't cause (delivery) issues on remote servers
 
Old 08-07-2018, 12:42 AM   #6
X-LFS-2010
Member
 
Registered: Apr 2016
Posts: 423

Rep: Reputation: Disabled
there aren't 47 lines in your shown config file.
 
Old 08-07-2018, 01:11 AM   #7
scasey
Senior Member
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.6
Posts: 3,830

Rep: Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294
Quote:
Originally Posted by X-LFS-2010 View Post
if your your going to run your own nameserver, which can effect operations on other computers, than you should be able to solve issues yourself

you shouldn't activate it unless you know how it works and have tested it isn't cause (delivery) issues on remote servers
I'm sorry, but there is no way that running one's own name server is ever going to affect operations on other (remote) computers. A name server has no effect unless a computer refers to it.
The one exception to that statement I just made is if the name server is authoritative for a domain name...I seriously doubt that is the case for the OP...

We need the OP to respond to the other, helpful, posts in this thread before we can assist further....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Configuring DNS on el5 - error starting named - Locating //etc/named.conf failed rajslinux Linux - Newbie 8 04-13-2012 06:17 AM
CentOS DNS error in named configuration cyberb Linux - Newbie 4 04-13-2011 08:49 PM
named configuration wackolacko Linux - Server 6 02-15-2009 02:45 AM
BIND/named Startup Error - named.root:1: '}' expected near ';' acutchin Linux - Server 4 11-10-2008 09:43 AM
service named cant start error in named.conf file gayanasa Linux - Server 2 07-02-2008 09:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration