From 674813e2e4d30ba92c4e594333697a8bac6c4cb0 Mon Sep 17 00:00:00 2001 From: vincent Date: Sun, 5 Nov 2023 14:58:10 +0100 Subject: [PATCH] migrate ducamps.eu on pdns --- ansible/group_vars/DNS | 3 ++- nomad-job/pdns-auth.nomad | 17 ++++------------- nomad-job/pihole.nomad | 5 ++--- 3 files changed, 8 insertions(+), 17 deletions(-) diff --git a/ansible/group_vars/DNS b/ansible/group_vars/DNS index 63f085c..5e0b2e6 100644 --- a/ansible/group_vars/DNS +++ b/ansible/group_vars/DNS @@ -15,6 +15,7 @@ pdns_rec_config: forward-zones: - "{{ consul_domain }}=127.0.0.1:8600" - "ducamps.win=192.168.1.10" - - "ducamps.eu=192.168.1.10" + - "ducamps.eu=192.168.1.5:5300" + - "1.168.192.in-addr.arpa=192.168.1.5:5300" local-address: "{{ ansible_default_ipv4.address }}" dnssec: "off" diff --git a/nomad-job/pdns-auth.nomad b/nomad-job/pdns-auth.nomad index 16267a0..482c2d8 100644 --- a/nomad-job/pdns-auth.nomad +++ b/nomad-job/pdns-auth.nomad @@ -3,7 +3,7 @@ job "pdns-auth" { datacenters = ["homelab"] priority = 100 meta { - force = 2 + force = 3 } type = "service" constraint { @@ -32,20 +32,12 @@ job "pdns-auth" { name = "pdns-auth" port = "dns" - check { - name = "service: dns tcp check" - type = "tcp" - interval = "10s" - timeout = "2s" - - success_before_passing = "3" - failures_before_critical = "3" - } } config { image = "powerdns/pdns-auth-48:latest" network_mode = "host" - + privileged=true + cap_add= ["NET_BIND_SERVICE"] volumes = [ "/mnt/diskstation/nomad/pdns-auth/var:/var/lib/powerdns/", "local/dnsupdate.conf:/etc/powerdns/pdns.d/dnsupdate.conf", @@ -67,7 +59,6 @@ job "pdns-auth" { data = <