LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Error in named configuration (https://www.linuxquestions.org/questions/linux-newbie-8/error-in-named-configuration-4175635496/)

valihcl 08-02-2018 01:29 AM

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]

scasey 08-02-2018 06:36 PM

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?

rtmistler 08-03-2018 07:23 AM

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.

AwesomeMachine 08-04-2018 04:40 AM

I would try removing the '#' on line 47.

X-LFS-2010 08-07-2018 12:38 AM

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

X-LFS-2010 08-07-2018 12:42 AM

there aren't 47 lines in your shown config file.

scasey 08-07-2018 01:11 AM

Quote:

Originally Posted by X-LFS-2010 (Post 5888675)
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....


All times are GMT -5. The time now is 10:06 AM.