Answer the question
In order to leave comments, you need to log in
How to configure bind9 for local zone?
named.conf
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";
#recursing-file "/var/named/data/named.recursing";
#secroots-file "/var/named/data/named.secroots";
allow-query { any; };
allow-transfer { none; };
recursion yes;
dnssec-enable yes;
dnssec-validation yes;
dnssec-lookaside auto;
/* Path to ISC DLV key */
bindkeys-file "/etc/named.root.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";
};
zone "loc" IN {
type master;
file "named.loc";
};
include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";
$TTL 604800
@ IN SOA loc. root.loc. (
2017120801 ; serial
3600 ; refresh
1800 ; retry
604800 ; expire
86400 ) ; minimum
@ IN A 192.168.17.100
www IN A 192.168.17.100
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question