18
named.conf
18
named.conf
@@ -1,41 +1,33 @@
|
||||
// BIND Configuration for Hidden Primary Server
|
||||
|
||||
options {
|
||||
directory "/etc/named/zones";
|
||||
pid-file "/var/run/named/named.pid";
|
||||
pid-file "/etc/named/zones/named.pid";
|
||||
|
||||
user "named";
|
||||
group "named";
|
||||
|
||||
// Hide version information
|
||||
version "DNS Server";
|
||||
|
||||
// Listen on all IPv4 interfaces on port 8053
|
||||
listen-on port 8053 { any; };
|
||||
listen-on-v6 { none; };
|
||||
|
||||
// Allow queries from anywhere (read-only)
|
||||
allow-query { any; };
|
||||
allow-transfer { any; };
|
||||
|
||||
// Disable recursion (authoritative only)
|
||||
recursion no;
|
||||
|
||||
// Enable query logging
|
||||
querylog yes;
|
||||
|
||||
// Global notification and transfer settings
|
||||
notify yes;
|
||||
also-notify {
|
||||
213.239.242.238;
|
||||
213.133.100.103;
|
||||
193.47.99.3;
|
||||
};
|
||||
|
||||
// Default transfer enabled
|
||||
allow-transfer { any; };
|
||||
};
|
||||
|
||||
// Zone configurations (loaded from separate file)
|
||||
include "/etc/named/zones/zones.conf";
|
||||
|
||||
// Logging configuration
|
||||
logging {
|
||||
channel default_log {
|
||||
file "/var/log/named/named.log" versions 3 size 5m;
|
||||
|
||||
Reference in New Issue
Block a user