I will rewrite your named.conf, so just copy from here, delete everything in your named.conf and paste this:
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a any DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
// See the BIND Administrator's Reference Manual (ARM) for details about the
// configuration located in /usr/share/doc/bind-{version}/Bv9ARM.html
options {
listen-on port 53 { any; };
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 { any; };
allow-transfer { any; };
recursion no;
dnssec-enable yes;
dnssec-validation yes;
/* Path to ISC DLV key */
bindkeys-file "/etc/named.iscdlv.key";
managed-keys-directory "/var/named/dynamic";
pid-file "/run/named/named.pid";
session-keyfile "/run/named/session.key";
};
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";
// zone domain4
zone "domain4" IN {
type master;
file "/var/named/domain4.db";};
// zone_end domain4
// zone domain4
zone "domain4" IN {
type master;
file "/var/named/domain4.db";};
// zone_end domain4
// zone domain
zone "domain" IN {
type master;
file "/var/named/domain.db";};
// zone_end domain
// zone domain5
zone "domain5" IN {
type master;
file "/var/named/domain5.db";};
// zone_end domain5
// zone domain3
zone "domain3" IN {
type master;
file "/var/named/domain3.db";};
// zone_end domain3
//zone "ns.nsbox.com" IN {type master;file "/var/named/ns.nsbox.com.db";};
//zone "ns12.nsbox.com" IN {type master;file "/var/named/ns12.nsbox.com.db";};
// zone service
zone "service" IN {
type master;
file "/var/named/service.db";};
// zone_end service
// zone domain2
zone "domain2" IN {
type master;
file "/var/named/domain2.db";};
// zone_end domain2
Ok. You need to replace "domain, domain2, domain3, domain4, domain5 and service" with real domains like "jeniha.com" or something else which is real. Also you need to rename all the "file "/var/named/domain.db";" to be "file "/var/named/jeniha.com.db";" for example and then to create a proper "jeniha.com.db". I will give you an example "jeniha.com.db" and you will replace "jeniha.com" with your domain.
$TTL 14400
jeniha.com. 86400 IN SOA ns1.jeniha.com. root.jeniha.com. (
2017101401 ; serial, todays date+todays
86400 ; refresh, seconds
7200 ; retry, seconds
3600000 ; expire, seconds
86400 ) ; minimum, seconds
;; NS Records
jeniha.com. IN NS ns1.jeniha.com.
jeniha.com. IN NS ns2.jeniha.com.
jeniha.com. IN NS ns3.jeniha.com.
jeniha.com. IN NS ns4.jeniha.com.
jeniha.com. IN NS ns5.jeniha.com.
;; A Records
jeniha.com. IN A 77.236.161.244
localhost.jeniha.com. IN A 127.0.0.1
;; AAAA Records
jeniha.com. IN AAAA 2001:470:1d1b:e5::11
;; MX Records
jeniha.com. IN MX 0 jeniha.com.
;; CNAME Records
www IN CNAME jeniha.com.
mail IN CNAME jeniha.com.
ftp IN CNAME jeniha.com.
irc IN CNAME jeniha.com.
Leaving "domain, domain2, domain3, domain4, domain5 and service" will not work properly for outside. If it`s for LAN it will be ok. If you are not using IPv6 remove the whole ";; AAAA Records and jeniha.com. IN AAAA 2001:470:1d1b:e5::11". Try like this and tell me what`s going on. Waiting for your reply.