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 = <