From 4d2e8c92a65227d77f3e812e8077f8c4d3d7e34f 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 e4fee5a9..e1ddf64f 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]