Named configuration error in centos 6.9
Posted: 2018/01/31 14:09:48
Hi,
im getting this error when i try to run /etc/init.d/named restart in my vm what should i do to resolve this issue the error output is as follows:
my named.conf file is as follows:
im getting this error when i try to run /etc/init.d/named restart in my vm what should i do to resolve this issue the error output is as follows:
Code: Select all
[shan@server1 ~]$ sudo /etc/init.d/named restart
Stopping named: [ OK ]
Starting named: /etc/init.d/named: line 115: 2072 Aborted /usr/sbin/named-checkconf $ckcf_options ${named_conf} > /dev/null 2>&1
Error in named configuration:
/etc/named.conf:163: bad secret 'bad base64 encoding'
/etc/named.conf:163: bad secret 'bad base64 encoding'
/etc/named.conf:163: bad secret 'bad base64 encoding'
mem.c:1246: REQUIRE(ctx->references == 1) failed.
[FAILED]
Code: Select all
//
// 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;
/* 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";
};
zone shancked.com IN{
type master;
file "forward";
allow-update{none;};
};
include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";