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