In this article
Clientless DNS filtering applies DNSFilter policies to macOS, iOS, and iPadOS devices through a configuration profile, with no additional software to install. DNSFilter generates and signs the profile for each Clientless endpoint directly from the dashboard, and the profile sends system DNS queries (except the Site's local domains) to the deployment's unique DNS over HTTPS (DoH) address.
This guide covers installing the profile manually on each device, which requires administrator access on a Mac. Unattended or enforced deployment requires a mobile device management (MDM) solution because profiles cannot be installed from the command line on macOS 26. Clientless filtering is available on Plus plans and above.
Prerequisites
Clientless DNS filtering on macOS, iOS, or iPadOS requires:
- A device running a supported OS for Clientless
- A DNSFilter dashboard role other than read-only or policy-only
- For networks that filter outbound traffic: access to the
45.54.28.0/24subnet, so the DNSFilter block page loads
Local and internal domains
Add the Site's local domains before downloading the profile, because the profile includes them when it is generated.
The profile excludes the local domains configured on the deployment's Site from DoH, including every subdomain of each. A Site with no local domains produces a profile with no exclusions. Excluded names resolve through the DNS server that the current network provides, while all other names stay on DoH. When the device is off the network that hosts them, excluded names may not resolve and are sent unencrypted to whatever DNS server the current network provides.
Create the deployment and install the profile
To create the deployment and install the profile:
- From the DNSFilter dashboard, navigate to Deployments > Clientless.
- Select Add Clientless Device.
- Enter the deployment details:
- Organization (MSP dashboard only): the Organization the Clientless Device belongs to
- Name: a name for the Clientless Device, which cannot be changed after the deployment is created
- Site: the Site the deployment connects to
- Policy/Schedule: leave as Inherit from Site, or select a different policy or schedule
- Block Page: leave as Inherit from Site, or select a different block page
- From DoH Type, select macOS/iOS.
- Select Generate DoH Endpoint.
- In the Configuration Profile row, select Download to save the
.mobileconfigfile. - Install the profile on the device:
-
Mac: Open the
.mobileconfigfile. From System Settings, navigate to General > Device Management, select the profile, and select Install. Select Continue, confirm the installation warning, and enter the administrator password. -
iPhone or iPad: Transfer the
.mobileconfigfile to the device. From Settings, navigate to General > VPN & Device Management, select the profile, select Install, and enter the device passcode.
-
Mac: Open the
- Confirm filtering is active: from the device, browse to any website, then check that its queries appear in Reporting > DNS Query Log, filtered to the device under Clientless.
Each profile is generated for one device and includes the deployment's DoH address, the Site's local domains, and two block page certificates: DNSFilter Root CA (NetAlerts Services for MSPs and MSP client organizations) and DNSFilter Root CA G1. The profile installs and trusts both certificates, so blocked HTTPS websites show the Block Page with no separate certificate installation, and it takes effect immediately with no restart.
Installing the same profile on several devices combines their traffic into one deployment in reporting, so create a separate deployment for each device. An installed profile does not update, so a change to the Site's local domains requires downloading the profile again and redeploying it.
Deploy to many Macs with an MDM
The MDM script creates a signed configuration profile for each Mac, which an MDM solution then installs without approval on each device. The script runs once, on an administrator's Mac, and creates each Mac's Clientless deployment through the DNSFilter API.
What the script requires
The script requires:
- A DNSFilter API key from an admin account, created in Account Settings > Security > API Keys. A dedicated API key for the script is recommended.
- The Site ID. From the DNSFilter dashboard, navigate to Deployments > Sites and edit the Site. The Site ID is the number at the end of the page address, such as
…/deployments/sites/edit/123456. - For Sites with local domains: the local DNS servers listed on the Site
- A Mac running a supported macOS version to run the script
- An MDM solution to install the profiles
By default, each deployment inherits the Site's policy or schedule and Block Page.
What the script does
For each Mac listed in the CSV file, the script:
- Finds the Mac's Clientless deployment, or creates one.
- Downloads that Mac's signed profile into the
./dnsfilter-profiles/folder. - Records the deployment ID, DoH address, and result in
summary.csv.
Running the script again downloads profiles with the same identifiers, so re-uploading them replaces each Mac's profile instead of adding a second one.
Run the script
To create and deploy the profiles:
- Download the MDM script.
- Create a CSV file with a
nameheader and one Mac per line, using the names that the MDM shows. Optionalpolicy_id,scheduled_policy_id, andblock_page_idcolumns set the policy, schedule, or Block Page for individual Macs. -
Run the following command, replacing
macs.csvwith the CSV file name:./dnsfilter-clientless-profiles.sh macs.csv
The script prompts for the API key and Site ID, or reads them from the
DNSFILTER_API_KEYandDNSFILTER_SITE_IDenvironment variables. - Upload each
.mobileconfigfile to the MDM and assign it to its one Mac only.
Before assigning the remaining profiles, assign one profile to a single Mac and confirm that its queries appear in Reporting > DNS Query Log, under Clientless in the Deployments filter. To stop filtering a Mac, remove its profile in the MDM. The Mac stops sending DNS queries to DNSFilter and uses the DNS servers that its network provides.
Remove Clientless DNS filtering
Removal takes effect immediately. A profile managed by MDM follows the MDM solution's removal policy, while any user with administrator rights can remove a manually installed profile.
Remove from macOS
To remove a manually installed profile on a Mac:
- From System Settings, navigate to General > Device Management.
- Select the profile, select the minus button, and authenticate.
Remove from iOS and iPadOS
To remove a manually installed profile on iOS or iPadOS:
- From Settings, navigate to General > VPN & Device Management.
- Select the profile and then select Remove Profile.
Remove profiles deployed with the MDM script
To remove Clientless DNS filtering from a Mac that received its profile from the MDM script, remove the profile in the MDM. The Mac stops sending DNS queries to DNSFilter and uses the DNS servers that its network provides, with no restart required. The Clientless deployment stays in the dashboard until it is deleted from Deployments > Clientless.
What to expect
When DNSFilter is unreachable, DNS resolution stops, and the device appears to have lost its internet connection, with no error that names DNS. DNS resumes after DNSFilter is reachable again, with no restart or network change needed.
Comments
0 comments
Please sign in to leave a comment.