From 3f7674b3ad48096c112c606b20e08274e5d44c70 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Thu, 29 Mar 2018 21:49:03 +0200 Subject: [PATCH] named.service: Run before mxstartup-mxvip.service If _wtf_ is started when the Internet is not available, unbound is unable to verify DNSSEC and libc will fall back to query the bind named on 141.14.16.1, which should be able to resolve local names. Experiments showed however, that sometimes mxstartup is executed on _wtf_ before the bind nameserver has started. This can lead to name resolution failures and mxstartup services startup failures, if these have ip addresses configured by name. Add startup contraint to start named before mxstartup. --- misc_systemd_units/named.service | 1 + 1 file changed, 1 insertion(+) diff --git a/misc_systemd_units/named.service b/misc_systemd_units/named.service index e4fee5a..e1ddf64 100644 --- a/misc_systemd_units/named.service +++ b/misc_systemd_units/named.service @@ -3,6 +3,7 @@ After=network.service gateway.service mxmount.service automount.service Wants=startup-hostname.service After=startup-hostname.service +Before=mxstartup-mxvip.service ConditionPathExists=/node/startup-hostname/wtf [Service]