Skip to content

Instantly share code, notes, and snippets.

@bvaudour
Created December 20, 2019 20:07
Show Gist options
  • Save bvaudour/284557440fef0221074804a80c5b9ef3 to your computer and use it in GitHub Desktop.
Save bvaudour/284557440fef0221074804a80c5b9ef3 to your computer and use it in GitHub Desktop.
[Unit]
Description=NextDNS DNS53 to DoH proxy.
ConditionFileIsExecutable=/usr/bin/nextdns
After=network.target
Before=nss-lookup.target
Wants=nss-lookup.target
[Service]
StartLimitInterval=5
StartLimitBurst=10
ExecStart=/usr/bin/nextdns "run" "-config-file" "/etc/nextdns.conf"
Restart=always
RestartSec=120
EnvironmentFile=-/etc/sysconfig/nextdns
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment