work-vm/ansible/files/domains.j2

29 lines
704 B
Text
Raw Permalink Normal View History

include "/etc/bind/tf-key.conf"; // Load Terraform key
// Main domain
zone "{{ domain_name }}" in {
type master;
2024-12-30 10:28:15 +01:00
file "/var/lib/bind/db.{{ domain_name }}";
update-policy {
2024-12-30 10:28:15 +01:00
grant {{ update_key }} subdomain {{ domain_name }}. A CNAME;
};
};
2024-12-30 10:28:15 +01:00
// Reverse DNS for {{ back_net }}/24
zone "{{ back_arpa }}" in {
type master;
2024-12-30 10:28:15 +01:00
file "/var/lib/bind/db.{{ back_arpa }}";
update-policy {
grant {{ update_key }} subdomain {{ back_arpa }}. PTR;
};
};
2024-12-30 10:28:15 +01:00
// Reverse DNS for {{ front_net }}/24
zone "{{ front_arpa }}" in {
type master;
2024-12-30 10:28:15 +01:00
file "/var/lib/bind/db.{{ front_arpa }}";
update-policy {
grant {{ update_key }} subdomain {{ front_arpa }}. PTR;
};
};