Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
LaunchCtl plist of ChinaDNS for El Capitan.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "">
<plist version="1.0">

This comment has been minimized.

Copy link
Owner Author

lexrus commented Sep 11, 2014

  1. Install chinadns:
    brew install chinadns-c
  2. Fetch a new chnroute:
    curl '' | grep ipv4 | grep CN | awk -F\| '{ printf("%s/%d\n", $4, 32-log($5)/log(2)) }' > /usr/local/etc/chnroute.txt
  3. Save the above plist into /Library/LaunchDaemons:
    sudo curl -o /Library/LaunchDaemons/com.shadowsocks.chinadns.plist
  4. Launch ChinaDNS:
    sudo launchctl load /Library/LaunchDaemons/com.shadowsocks.chinadns.plist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.