From f17a946d8155d9396a58c1ad2cbab1d99dc75684 Mon Sep 17 00:00:00 2001 From: vincent Date: Mon, 6 Nov 2023 19:07:04 +0100 Subject: [PATCH] add recursort in front of auth server --- nomad-job/pdns-auth.nomad | 26 +++++++++++++++++++++++++- nomad-job/pihole.nomad | 6 ++---- 2 files changed, 27 insertions(+), 5 deletions(-) diff --git a/nomad-job/pdns-auth.nomad b/nomad-job/pdns-auth.nomad index 9c7d3dd..83d2f07 100644 --- a/nomad-job/pdns-auth.nomad +++ b/nomad-job/pdns-auth.nomad @@ -116,6 +116,30 @@ SQLALCHEMY_DATABASE_URI=postgresql://pdns-admin:{{ .Data.data.pdnsadmin }}@activ } } + task "pdns-recursor" { + + driver = "docker" + config { + image = "powerdns/pdns-recursor-master:latest" + network_mode = "host" + volumes = [ + "local/recursor.conf:/etc/powerdns/recursor.conf", + ] + } + template{ + destination = "local/recursor.conf" + data= <