work-vm/ansible/files/domains.j2

28 lines
712 B
Django/Jinja
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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