Android setup (Private DNS)#
Android 9 and later has encrypted DNS built in. The setup needs no app and applies on every network the phone uses: home Wi-Fi, school Wi-Fi and mobile data.
Steps#
- Open Settings.
- Go to Network and internet (on Samsung: Connections, More connection settings), then Private DNS. If your phone uses different menu names, search the settings for "Private DNS".
- Select Private DNS provider hostname.
- Enter your configuration's hostname:
<configid>.dns.gracedns.eu, replacing<configid>with your configuration id (for example7f3a9c12.dns.gracedns.eu). The Install tab of your configuration in the web app shows the complete hostname under DNS over TLS, ready to copy. - Tap Save.
Verify#
Add a test domain to your configuration's denylist (Security tab, Denylist), choosing one the phone has not opened recently, because devices cache DNS answers. Select Save changes, wait about a minute for the change to reach the resolvers, then open the domain in a browser on the phone. The page should fail to load. If your configuration shows a block page, HTTPS sites display it only on devices that trust the GraceDNS block-page root certificate; on other devices the browser shows a certificate warning, which also confirms the block. See Block types. If logging is on, the Logs tab shows the blocked lookup. Remove the test entry afterwards.
Notes#
- Private DNS uses DNS over TLS on port 853. Some restrictive networks block that port; Android then shows "Private DNS server cannot be accessed" and lookups fail rather than falling back to unencrypted DNS, so the filter is never bypassed silently. Switching Private DNS to Automatic restores connectivity on such a network but turns filtering off on the phone.
- The setting applies to all apps on all networks.
- To pause filtering, switch Private DNS back to Automatic. Anyone who can open the phone's settings can change the entry. On managed devices, an administrator can set and lock the Private DNS setting through mobile device management (MDM). See What DNS filtering cannot do.
Back to docs.