All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
69 lines
1.6 KiB
Plaintext
69 lines
1.6 KiB
Plaintext
// BIND Configuration for Hidden Primary Server
|
|
|
|
options {
|
|
directory "/etc/named/zones";
|
|
pid-file "/var/run/named/named.pid";
|
|
|
|
// 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; };
|
|
|
|
// 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;
|
|
severity info;
|
|
print-time yes;
|
|
print-severity yes;
|
|
print-category yes;
|
|
};
|
|
|
|
channel transfer_log {
|
|
file "/var/log/named/transfers.log" versions 3 size 5m;
|
|
severity info;
|
|
print-time yes;
|
|
print-severity yes;
|
|
print-category yes;
|
|
};
|
|
|
|
channel query_log {
|
|
file "/var/log/named/queries.log" versions 3 size 10m;
|
|
severity info;
|
|
print-time yes;
|
|
print-severity yes;
|
|
print-category yes;
|
|
};
|
|
|
|
category default { default_log; };
|
|
category queries { query_log; };
|
|
category xfer-in { transfer_log; };
|
|
category xfer-out { transfer_log; };
|
|
category notify { transfer_log; };
|
|
}; |