From d88328e967d582c7fc63e79208c752f93c8a210c Mon Sep 17 00:00:00 2001 From: Jaime Pillora Date: Wed, 1 Feb 2017 15:35:39 +1100 Subject: [PATCH] macOS service instructions --- README.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/README.md b/README.md index f945500..1f16679 100644 --- a/README.md +++ b/README.md @@ -85,6 +85,35 @@ processes in background. For example, you might want to add the following line t screen -dmS dingo /path/to/bin/dingo -port=53 -gdns:server=[2a00:1450:401b:800::200e] ``` +In macOS, you can use [`launchd`](http://www.launchd.info/). Install `dingo` in `/usr/local/bin`. Login as root `sudo su` (required to listen on 53). Create a service file `/Library/LaunchDaemons/dingo.plist`. Start the service `launchctl load -w /Library/LaunchDaemons/dingo.plist`: + +```xml + + + + + Label + dingo + ProgramArguments + + /usr/local/bin/dingo + -port53 + -gdns:server216.58.199.78 + -gdns:workers20 + -gdns:nopad + + KeepAlive + + StandardOutPath + /usr/local/var/log/dingo.log + StandardErrorPath + /usr/local/var/log/dingo.err + + +``` + + + ## Author Pawel Foremski, [pjf@foremski.pl](mailto:pjf@foremski.pl)