NextDNS CLI macOS mass deployment
Hi all, I have been trying to deploy nextDNS within my organization, using a script that downloads and configures nextDNS cli. I am also using Hexnode MDM for deploying custom scripts. I am not sure myself what the issue is, as the scripts are being initiated and then pending, and don't provide any feedback.
My question is: did anyone had similar issues and how to fix it?
My script:
#!/bin/bash
# --- Configuration Variables ---
PROFILE_ID="secret"
NEXTDNS_BIN="/usr/local/bin/nextdns"
# --- Installation ---
echo "Starting NextDNS CLI Installation..."
/bin/bash -c "$(curl -sL https://nextdns.io/install)"
if [ $? -ne 0 ]; then
echo "NextDNS installation failed."
exit 1
fi
echo "NextDNS CLI installed successfully. Applying configuration..."
# --- Configuration ---
sudo "$NEXTDNS_BIN" install \
--profile "$PROFILE_ID" \
--setup-router \
--report-client-info \
--cache-size 10MB \
--auto-activate \
--non-interactive
# Ensure service is running
sudo launchctl bootstrap system /Library/LaunchDaemons/nextdns.plist
sudo "$NEXTDNS_BIN" start
sudo "$NEXTDNS_BIN" activate
echo "NextDNS service started and activated."
exit 0
Reply
Content aside
- 2 days agoLast active
- 18Views
-
1
Following
