Commit e780a2d3 authored by ale's avatar ale

Add customization hooks for Bind

parent e012507d
Pipeline #3155 failed with stage
......@@ -36,3 +36,14 @@ To install a custom, manually maintained DNS zone, you are going to
need to create a tiny dedicated Ansible role. There are detailed
instructions on how to do so in
## Further customization
If you need Bind to set up specific zones or delegations, your own
automation can create the following files:
* */etc/bind/named.conf.internal-custom-zones*
* */etc/bind/named.conf.external-custom-zones*
which should contain Bind directives for the internal and external
views respectively.
......@@ -52,11 +52,15 @@
- manual
- auto
- name: Create empty named.conf.zones files if necessary
- name: Create empty named.conf.* files if necessary
path: "/etc/bind/named.conf.zones"
path: "/etc/bind/{{ item }}"
state: touch
changed_when: false
- named.conf.zones
- named.conf.internal-custom-zones
- named.conf.external-custom-zones
- name: Generate infrastructural zone
......@@ -14,6 +14,9 @@ view "internal-in" in {
// Include the root hints and the default zones.
include "/etc/bind/named.conf.default-zones";
// Include further manually-maintained zones.
include "/etc/bind/named.conf.internal-custom-zones";
// Include zonetool-maintained zones.
include "/etc/bind/named.conf.zones";
......@@ -28,6 +31,9 @@ view "external-in" in {
additional-from-auth no;
additional-from-cache no;
// Include zonetool-maintained zones.
// Include manually-maintained zones.
include "/etc/bind/named.conf.external-custom-zones";
// Include zonetool-maintained zones.
include "/etc/bind/named.conf.zones";
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment