Skip to content

Instantly share code, notes, and snippets.

@stonebyte
Last active September 28, 2024 18:28
Show Gist options
  • Save stonebyte/6b3a18e1a11fa7385328f31e279d1ccf to your computer and use it in GitHub Desktop.
Save stonebyte/6b3a18e1a11fa7385328f31e279d1ccf to your computer and use it in GitHub Desktop.
Unbound DNS Server not starting after reboot

Unbound DNS Server not starting after reboot

On one of my systems running Ubuntu with a lot of network interfaces, unbound fails to start after reboot. When started manually with systemd start unbound.service it works fine.

Solution:

Add the following line to /lib/systemd/system/unbound.service:

[Unit]
Description=Unbound DNS server
Documentation=man:unbound(8)
After=network.target
+ After=network-online.target
Before=nss-lookup.target
Wants=nss-lookup.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment