Skip to main content

Creating the config.plist file for SafeDNS Endpoint Lite on macOS

Use this guide to create the Config.plist file on target macOS devices before deploying SafeDNS Endpoint Lite.

1. Add the AuthKey to the script

Open create-conf.sh and replace "123zZGNlOGYtN2Nokd00M2ZlLWAKD2UtNTU000NlNjc5Maaa" (line 9) with your Base64-encoded AuthKey.







LOG_FILE="/var/log/safedns-installer.log"

AUTH_KEY="123zZGNlOGYtN2Nokd00M2ZlLWAKD2UtNTU000NlNjc5Maaa" — the part to modify
DEVICE_NAME=$(scutil --get ComputerName 2>/dev/null || hostname)

It won't work with the sample key from the original script 

2. Upload the script to SimpleMDM

1. Go to Scripts
macos_instruction1.png

2. Click on Create Script
macos_instruction2.png


3. Give it a name, for example SafeDNS_Installer, upload the updated create-conf.sh, and click Save.

3. Run the script on target devices

1. Go to Jobs > Create Job.

macos_instruction3.png

2. Select the script you created with your AuthKey, choose the target devices or device groups, configure the run option, and run the job.

4. Verify the result

After the job runs, check that the following files were created on the target Mac:

  • Config.plist
  • /var/log/safedns-installer.log

The log file confirms that the script was delivered and executed.