[root@centos7]# vim /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.
//
// 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 { 127.0.0.1; 35.190.128.157; 10.142.0.2; };
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;
/* 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";
include "/etc/rndc.key";
zone "labs.eti.br" {
type master;
file "db.labs.eti.br";
allow-update { key rndc-key; };
allow-transfer { 35.196.13.28; 10.142.0.3; };
};
zone "128.190.35.in-addr.arpa" {
type master;
file "db.128.190.35.in-addr.arpa";
allow-update { key rndc-key; };
allow-transfer { 35.196.13.28; 10.142.0.3; };
};
zone "13.196.35.in-addr.arpa" {
type master;
file "db.13.196.35.in-addr.arpa";
allow-update { key rndc-key; };
allow-transfer { 35.196.13.28; 10.142.0.3; };
};
[root@centos7]# named-checkconf -z
zone localhost.localdomain/IN: loaded serial 0
zone localhost/IN: loaded serial 0
zone 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 0
zone 1.0.0.127.in-addr.arpa/IN: loaded serial 0
zone 0.in-addr.arpa/IN: loaded serial 0
zone labs.eti.br/IN: loaded serial 2018021802
zone 128.190.35.in-addr.arpa/IN: loaded serial 2018021802
zone 13.196.35.in-addr.arpa/IN: loaded serial 2018021801