ensure nss-lookup.target is hit after unbound starts

https://github.com/NLnetLabs/unbound/issues/296

this fixes volume hostname resolution on reboot
This commit is contained in:
Girish Ramakrishnan
2021-05-14 12:07:05 -07:00
parent 43642b2d60
commit a56766ab0e
2 changed files with 8 additions and 3 deletions

View File

@@ -2,13 +2,16 @@
[Unit]
Description=Unbound DNS Resolver
After=network.target docker.service
After=network-online.target docker.service
Before=nss-lookup.target
Wants=network-online.target nss-lookup.target
[Service]
PIDFile=/run/unbound.pid
ExecStart=/usr/sbin/unbound -d
ExecReload=/bin/kill -HUP $MAINPID
Restart=always
Type=notify
[Install]
WantedBy=multi-user.target