From 1671cff9aef06a0ca30f3cc2570b411128e07eca Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Sun, 26 Oct 2025 21:42:42 +0100 Subject: [PATCH] changes --- named.conf | 8 +++----- zones.conf | 16 ++++++++++++++++ 2 files changed, 19 insertions(+), 5 deletions(-) create mode 100644 zones.conf diff --git a/named.conf b/named.conf index 81198ab..676610e 100644 --- a/named.conf +++ b/named.conf @@ -1,7 +1,7 @@ // BIND Configuration for Hidden Primary Server options { - directory "/var/named"; + directory "/etc/named/zones"; pid-file "/var/run/named/named.pid"; // Hide version information @@ -51,10 +51,8 @@ zone-template "standard-zone" { }; }; -// Zone configurations using template -zone "whiskeylimahotel.de" using-template "standard-zone" { - file "whiskeylimahotel.de.zone"; -}; +// Zone configurations (loaded from separate file) +include "/etc/named/zones/zones.conf"; // Logging configuration logging { diff --git a/zones.conf b/zones.conf new file mode 100644 index 0000000..1a8c556 --- /dev/null +++ b/zones.conf @@ -0,0 +1,16 @@ +// Zone Configurations +// This file contains all zone definitions + +// Primary zones +zone "whiskeylimahotel.de" using-template "standard-zone" { + file "whiskeylimahotel.de.zone"; +}; + +// Add additional zones here following the same pattern: +// zone "example.com" using-template "standard-zone" { +// file "example.com.zone"; +// }; +// +// zone "test.org" using-template "standard-zone" { +// file "test.org.zone"; +// }; \ No newline at end of file