dns: refs #8552 - Juan Request #79

This commit is contained in:
Xavi Lleó 2025-03-27 10:43:50 +01:00
parent 24d8864cf6
commit babf43cfba
5 changed files with 10 additions and 34 deletions

View File

@ -16,14 +16,14 @@ bind_config_templates:
- { src: 'wan.key', dest: '/etc/bind/keys/wan.key', mode: 'u=rw,g=r,o=' }
- { src: 'rndc.key', dest: '/etc/bind/rndc.key', mode: 'u=rw,g=r,o=' }
- { src: 'dhcp.key', dest: '/etc/bind/keys/dhcp.key', mode: 'u=rw,g=r,o=' }
- { src: 'isp1.ns', dest: '/root/scripts/switch-isp', mode: 'u=rw,g=rw,o=r' }
- { src: 'isp2.ns', dest: '/root/scripts/switch-isp', mode: 'u=rw,g=rw,o=r' }
directory:
- { path: '/root/scripts', owner: 'root', group: 'root', mode: 'u=rwx,g=rx,o=rx' }
- { path: '/etc/bind/keys', owner: 'root', group: 'bind', mode: 'u=rwx,g=rxs,o=rx' }
- { path: '/root/scripts/switch-isp', owner: 'root', group: 'bind', mode: 'u=rwx,g=rxs,o=rx' }
required_files:
- { src: 'delete.ns', dest: '/root/scripts/switch-isp', owner: 'root', group: 'bind', mode: 'u=rw,g=rw,o=r' }
- { src: 'isp1.ns', dest: '/root/scripts/switch-isp', owner: 'root', group: 'bind', mode: 'u=rw,g=rw,o=r' }
- { src: 'isp2.ns', dest: '/root/scripts/switch-isp', owner: 'root', group: 'bind', mode: 'u=rw,g=rw,o=r' }
- { src: 'switch-isp.sh', dest: '/root/scripts', owner: 'root', group: 'root', mode: 'u=rwx,g=rx,o=rx' }
- { src: 'sync-conf', dest: '/root/scripts', owner: 'root', group: 'root', mode: 'u=rwx,g=rx,o=rx' }
- { src: 'gen-key.sh', dest: '/root/scripts', owner: 'root', group: 'bind', mode: 'u=rwx,g=rx,o=rx' }

View File

@ -1,16 +0,0 @@
update add verdnatura.es 3600 A 89.6.245.230
update add verdnatura.es 3600 A 89.6.245.231
update add kube-proxy.verdnatura.es 3600 A 89.6.245.230
update add kube-proxy.verdnatura.es 3600 A 89.6.245.231
update add smtp.verdnatura.es 3600 A 89.6.245.230
update add imap.verdnatura.es 3600 A 89.6.245.230
update add autodiscover.verdnatura.es 3600 A 89.6.245.230
update add time1.verdnatura.es 3600 A 89.6.245.230
update add time2.verdnatura.es 3600 A 89.6.245.230
update add dc-ip01.verdnatura.es 3600 A 89.6.245.228
update add dc-ip02.verdnatura.es 3600 A 89.6.245.229
update add dc-ip03.verdnatura.es 3600 A 89.6.245.230
update add dc-ip04.verdnatura.es 3600 A 89.6.245.231
update add mailgw1.verdnatura.es 43200 A 89.6.245.232
update add mailgw2.verdnatura.es 43200 A 89.6.245.233
send

View File

@ -1,16 +0,0 @@
update add verdnatura.es 3600 A 195.77.191.180
update add verdnatura.es 3600 A 195.77.191.181
update add kube-proxy.verdnatura.es 3600 A 195.77.191.180
update add kube-proxy.verdnatura.es 3600 A 195.77.191.181
update add smtp.verdnatura.es 3600 A 195.77.191.180
update add imap.verdnatura.es 3600 A 195.77.191.180
update add autodiscover.verdnatura.es 3600 A 195.77.191.180
update add time1.verdnatura.es 3600 A 195.77.191.180
update add time2.verdnatura.es 3600 A 195.77.191.180
update add dc-ip01.verdnatura.es 3600 A 195.77.191.178
update add dc-ip02.verdnatura.es 3600 A 195.77.191.179
update add dc-ip03.verdnatura.es 3600 A 195.77.191.180
update add dc-ip04.verdnatura.es 3600 A 195.77.191.181
update add mailgw1.verdnatura.es 43200 A 195.77.191.180
update add mailgw2.verdnatura.es 43200 A 195.77.191.181
send

View File

@ -0,0 +1,4 @@
{% for record in dns_records_main %}
update add {{ record.name.ljust(30) }} {{ record.ttl }} A {{ record.ip }}
{% endfor %}
send

View File

@ -0,0 +1,4 @@
{% for record in dns_records_secondary %}
update add {{ record.name.ljust(30) }} {{ record.ttl }} A {{ record.ip }}
{% endfor %}
send