Step-by-step guide to configure Android to use our secure, token-gated DNS service via DNS-over-TLS (DoT).
๐ค Android • Mobile โ Verified • Working ๐ DoT • Token AuthAndroid includes built-in support for DNS-over-TLS (DoT) via the Private DNS feature. This guide will help you configure Android to use our secure DNSaaS service with token-based authentication.
| Service | Endpoint | Authentication |
|---|---|---|
| Primary DNS | dns1.oss.co.za (DoT hostname) |
Token in URL path |
| Protocol | DNS-over-TLS (DoT) • Port 853 • TLS 1.3 | |
| Android Version | Android 9+ (Pie) with Private DNS support | |
dns1.oss.co.za with the token in the SNI or path.
token_testclient123 (replace with your actual token)token_xxxxxxxxxx
Open the Settings app on your Android device.
This is usually a gear icon on your home screen or in the app drawer.
Tap Network & internet (may be named differently on some devices).
Look for Connections, Wi-Fi & Network, or similar.
Tap Private DNS (or Advanced โ Private DNS).
On some devices: More connection settings โ Private DNS.
Select Private DNS provider hostname.
Enter the following hostname (replace token_testclient123 with your token):
Do NOT include https:// or /dns-query in the hostname.
Correct: dns1.oss.co.za
Wrong: https://dns1.oss.co.za/dns-query
Android Private DNS uses DoT (DNS-over-TLS), not DoH.
Currently, Android's Private DNS feature does not support tokens in the hostname path. You must use a DoT endpoint that includes the token in the SNI or configure a custom DoT server with token support.
If your DoT server does not support token authentication, you may need to use a third-party DoH app (see Method 2).
Tap Save or OK to apply the settings.
Android will validate the DoT server. If successful, it will show "Connected" or "Secure" status.
If your DoT server doesn't support token authentication, you can use a third-party app that supports DoH with custom headers.
Download Intra from the Google Play Store.
Configure with your DoH endpoint:
Download DNS66 from F-Droid.
Add a custom DNS server with your DoH endpoint.
Download AdGuard DNS from the Google Play Store.
Configure with your DoH endpoint and token.
Use these test sites to verify your Android configuration is working correctly.
| Test Domain | Expected Result |
|---|---|
https://example.com |
โ Should load normally |
http://zycdjz.com |
โ Should show "This site can't be reached" |
http://adult.filterdns.net |
โ Should show "This site can't be reached" |
| Test Domain | Expected Result |
|---|---|
https://dnsleaktest.com |
Should show dns1.oss.co.za or 102.220.218.218 |
| Test | Expected Result |
|---|---|
| Settings โ Private DNS | Should show "Connected" or "Secure" |
dns1.oss.co.zahttp://adult.filterdns.net - should show "This site can't be reached"https://dnsleaktest.com - should show your DNS serverTo revert to your previous DNS settings:
Go to Settings โ Network & internet โ Private DNS.
Select Automatic (or Off depending on your device).
This will restore your ISP's default DNS settings.
Restart your device to clear the DNS cache.
Or use a network reset: Settings โ System โ Reset โ Reset network settings.
dns1.oss.co.za