From c117675ebdec248a1dca236acc7ca4f098811888 Mon Sep 17 00:00:00 2001 From: nl6720 Date: Wed, 30 Oct 2019 09:55:27 +0200 Subject: [PATCH] Fix systemd unit startup order Order dnsmasq.service before network.target and after network-online.target & nss-lookup.target. Additionally pull in nss-lookup.target. This matches the behaviour of systemd-resolved and Unbound. Signed-off-by: nl6720 --- contrib/systemd/dnsmasq.service | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contrib/systemd/dnsmasq.service b/contrib/systemd/dnsmasq.service index c70b144..ff0ed08 100644 --- a/contrib/systemd/dnsmasq.service +++ b/contrib/systemd/dnsmasq.service @@ -1,5 +1,8 @@ [Unit] Description=dnsmasq - A lightweight DHCP and caching DNS server +After=network.target +Before=network-online.target nss-lookup.target +Wants=nss-lookup.target [Service] Type=dbus