Skip to content

Instantly share code, notes, and snippets.

@tutugreen
Forked from zengxs/chinadns.service
Last active February 15, 2019 12:00
Show Gist options
  • Save tutugreen/863d7e59be0f2870eabf9190cb02fe30 to your computer and use it in GitHub Desktop.
Save tutugreen/863d7e59be0f2870eabf9190cb02fe30 to your computer and use it in GitHub Desktop.
Systemd unit file for chinadns
# Systemd unit file for chinadns
# CentOS7 OK
[Unit]
Description=Protect yourself against DNS poisoning in China
After=syslog.target network.target
[Service]
Type=simple
ExecStart=/usr/local/bin/chinadns -b 127.0.0.1 -p 5353 -c /etc/ChinaDNS/chnroute.txt -v
ExecStop=/bin/kill -15 $MAINPID
User=nobody
Group=nobody
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment