From bfda7b3236a45da0b850695e047a70359ab86247 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Thu, 6 Feb 2025 09:14:53 +0100 Subject: [PATCH] dnsmasq: skip DNS update script when starting up --- roles/dnsmasq/templates/dns-update.j2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/dnsmasq/templates/dns-update.j2 b/roles/dnsmasq/templates/dns-update.j2 index 69b0351..89ac0c2 100644 --- a/roles/dnsmasq/templates/dns-update.j2 +++ b/roles/dnsmasq/templates/dns-update.j2 @@ -1,5 +1,10 @@ #!/bin/sh +# don’t spam the DNS server when starting dnsmasq +if [ -n "${DNSMASQ_INTERFACE}" ] ; then + exit +fi + domain={{ domain }} ldap_user={{ password.ldap_user }} ttl=3600