In this article
Move an existing Windows or macOS Roaming Client to a different Site or Organization. The agent does not need to be reinstalled.
This process updates the local configuration to use a new Site Key and forces the agent to re-register with DNSFilter. After the re-registration completes, the device appears in the dashboard under the new Site or Organization.
Use this when a device was installed with the wrong Site Key or assigned to the wrong deployment.
Warning: Do not delete a Site that has active Roaming Clients. Deleting a Site causes an outage for all Roaming Clients associated with it. Restoring them requires recreating the Site and reinstalling the affected agents with the new Site Key.
Windows Roaming Client
Move a Windows Roaming Client to a different Site in the same Organization from the dashboard. Moving it to a different Organization or sub-organization requires updating the agent's registration on the device.
Move to a different Site in the same Organization
- From the DNSFilter dashboard, navigate to Deployments > Roaming Clients.
- Select the Roaming Client or Roaming Clients to move.
- For one Roaming Client, select Advanced Edit (the pencil) in the Actions column. For several, select Edit above the grid.
- Select the new Site.
- Select Save.
The Roaming Client appears under the new Site.
Move to a different Organization or sub-organization
To move a Windows Roaming Client to a different Organization or sub-organization:
- From the DNSFilter dashboard in the destination Organization, navigate to Deployments > Roaming Clients.
- Select Install Roaming Client, select a Site, then copy the Site Key.
- On the device, stop all DNSFilter services.
Open the
appsettings.jsonconfiguration file and replace its contents with the following, updating the Site Key value:{ "Registration": { "SiteKey": "NEW_SITE_KEY" } }Replacing the entire file prevents conflicts with settings from the previous installation.
- In the Windows registry, delete the Agent key:
- For the Standard agent: Delete
HKLM\SOFTWARE\DNSFilter\Agent. - For the legacy Whitelabel agent: Delete
HKLM\SOFTWARE\DNSAgent\Agent.
- For the Standard agent: Delete
Restart the device.
Alternatively, start the agent services.
- In the original Organization, delete the stale Roaming Client for the device.
When the agent starts again, it registers as a new Roaming Client under the Site that matches the new Site Key.
macOS Roaming Client
On macOS, reassigning the Site Key requires updating the agent configuration. The process differs by agent version. Modifying files in /Library/Application Support requires administrative privileges.
macOS Roaming Client v2.4.0 and higher
Update the SiteKey value in configuration.json with the new Site Key. The agent detects the change automatically. It updates the device status as uninstalled on the old Site, registers under the new Site, and updates registration.json with the new Client ID.
Caution: Do not delete registration.json or restart the agent service after updating the Site Key. Doing so may cause issues updating the uninstall status on the old Site or create duplicate entries on the new Site.
File locations for v2.4.0 and higher
This table lists the macOS file paths for the Standard and legacy Whitelabel agents.
| Component | Standard path | Legacy Whitelabel path |
|---|---|---|
| Config file | /Library/Application Support/DNSFilter Agent/configuration.json | /Library/Application Support/DNS Agent/configuration.json |
| Registration file | /Library/Application Support/DNSFilter Agent/registration.json | /Library/Application Support/DNS Agent/registration.json |
| Service file | /Library/LaunchDaemons/com.dnsfilter.agent.macos.helper.plist | /Library/LaunchDaemons/io.netalerts.agent.macos.helper.plist |
Example script (Standard version)
Keep the SiteKey value enclosed in double quotes. When moving a legacy Whitelabel agent, update the file paths accordingly. This example script updates the SiteKey value in configuration.json for the Standard agent:
#!/bin/bash
NEW_KEY="YourNewSecretKey"
CONFIG_PATH="/Library/Application Support/DNSFilter Agent/configuration.json"
if [ "$EUID" -ne 0 ]; then
echo "Please run as root (sudo)"
exit 1
fi
if [ -f "$CONFIG_PATH" ]; then
sed -i '' "s/\"SiteKey\":[[:space:]]*\"[0-9a-f]*\"/\"SiteKey\": \"$NEW_KEY\"/" "$CONFIG_PATH"
else
echo "configuration.json not found"
exit 1
fi
echo "Migration complete."After the Site Key is updated, the device appears in the DNSFilter dashboard under the new Site and shows as uninstalled on the old Site.
macOS Roaming Client v2.3.13 and older
Update the secret_key value in daemon.conf, remove the existing registration file, and restart the agent service.
File locations for v2.3.13 and older
This table lists the macOS file paths for the Standard and legacy Whitelabel agents.
| Component | Standard path | Legacy Whitelabel path |
|---|---|---|
| Config file | /Library/Application Support/DNSFilter Agent/daemon.conf | /Library/Application Support/DNS Agent/daemon.conf |
| Registration file | /Library/Application Support/DNSFilter Agent/daemon.reg | /Library/Application Support/DNS Agent/daemon.reg |
| Service file | /Library/LaunchDaemons/com.dnsfilter.agent.macos.helper.plist | /Library/LaunchDaemons/io.netalerts.agent.macos.helper.plist |
Update the Site Key
- In
daemon.conf, update thesecret_keyvalue with the new Site Key. - Delete the
daemon.regfile; this file stores the existing registration state. - Restart the DNSFilter Agent service so that the device registers with the new key.
If the registration file is not removed, the agent continues communicating with the previously assigned identity.
Example script (Standard version)
Keep the secret_key value enclosed in double quotes. When moving a legacy Whitelabel agent, update the file paths and service identifiers accordingly. This example script updates the secret_key value, deletes the registration file, and restarts the agent service for the Standard agent:
#!/bin/bash
NEW_KEY="YourNewSecretKey"
CONFIG_PATH="/Library/Application Support/DNSFilter Agent/daemon.conf"
REG_FILE="/Library/Application Support/DNSFilter Agent/daemon.reg"
PLIST_PATH="/Library/LaunchDaemons/com.dnsfilter.agent.macos.helper.plist"
if [ "$EUID" -ne 0 ]; then
echo "Please run as root (sudo)"
exit 1
fi
if [ -f "$CONFIG_PATH" ]; then
sed -i '' "s/^[[:space:]]*secret_key[[:space:]]*=.*/secret_key = \"$NEW_KEY\"/" "$CONFIG_PATH"
else
echo "daemon.conf not found"
exit 1
fi
if [ -f "$REG_FILE" ]; then
rm "$REG_FILE"
fi
launchctl bootout system "$PLIST_PATH" 2>/dev/null
sleep 2
launchctl bootstrap system "$PLIST_PATH"
echo "Migration complete."After the agent restarts, a new registration file is created and the device appears in the DNSFilter dashboard under the new Site.
Comments
0 comments
Please sign in to leave a comment.