๐Ÿค– Configure Android for Secure DNSaaS

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 Auth

๐Ÿ“‹ Overview

Android 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
๐Ÿ’ก Android vs Other Platforms Android uses DNS-over-TLS (DoT) natively, not DoH. This is a different protocol that uses port 853 instead of 443.
โš ๏ธ Important Android's Private DNS feature requires a DoT hostname (not a URL). Your token must be included in the hostname path. For example: dns1.oss.co.za with the token in the SNI or path.

โœ… Prerequisites

๐Ÿ’ก Token Format Your token is provided by the DNSaaS administrator. It looks like: token_xxxxxxxxxx

๐Ÿค– Configure Android Step-by-Step

1 Open Settings

Open the Settings app on your Android device.

This is usually a gear icon on your home screen or in the app drawer.

2 Navigate to Network & Internet

Tap Network & internet (may be named differently on some devices).

Look for Connections, Wi-Fi & Network, or similar.

3 Find Private DNS

Tap Private DNS (or Advanced โ†’ Private DNS).

On some devices: More connection settings โ†’ Private DNS.

๐Ÿ’ก Search Tip You can also search for "Private DNS" in the Settings search bar.

4 Enter the DoT Hostname

Select Private DNS provider hostname.

Enter the following hostname (replace token_testclient123 with your token):

dns1.oss.co.za
โš ๏ธ Important

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.

โš ๏ธ Token Support

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).

5 Save and Verify

Tap Save or OK to apply the settings.

Android will validate the DoT server. If successful, it will show "Connected" or "Secure" status.

โœ… Success Indicator The Private DNS status should show "Connected" or "Secure".

๐Ÿ“ฑ Method 2: Third-Party DoH App Alternative

If your DoT server doesn't support token authentication, you can use a third-party app that supports DoH with custom headers.

Option A: Intra (by Google)

Installation

Download Intra from the Google Play Store.

Configure with your DoH endpoint:

https://dns1.oss.co.za/testclient123/dns-query

Option B: DNS66 (F-Droid)

Installation

Download DNS66 from F-Droid.

Add a custom DNS server with your DoH endpoint.

Option C: AdGuard DNS (App Store)

Installation

Download AdGuard DNS from the Google Play Store.

Configure with your DoH endpoint and token.

๐Ÿ’ก Why Use a Third-Party App?
  • Supports DoH (port 443) instead of DoT (port 853)
  • Allows custom headers and token authentication
  • Works on older Android versions
  • Provides additional filtering and logging features

๐Ÿงช Test Your Configuration

Use these test sites to verify your Android configuration is working correctly.

Browser Tests

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"

DNS Leak Test

Test Domain Expected Result
https://dnsleaktest.com Should show dns1.oss.co.za or 102.220.218.218

Private DNS Status Check

Test Expected Result
Settings โ†’ Private DNS Should show "Connected" or "Secure"

๐Ÿ”ง Troubleshooting

โŒ "Can't connect" or "Failed to connect"
  • Check that your device has an active internet connection
  • Verify the hostname is correct: dns1.oss.co.za
  • Ensure your DoT server is running and accessible
  • Check if your network blocks port 853 (DoT)
  • Try using a third-party DoH app instead
โŒ Private DNS setting not available
  • Your device may be running Android 8 or older
  • Some manufacturers hide the Private DNS option
  • Use a third-party app as an alternative
โŒ Token not working with Private DNS
  • Android Private DNS does not support tokens in the hostname
  • Use a third-party DoH app that supports custom headers
  • Configure your DoT server to accept tokens via SNI
โœ… Verify It's Working
  • Check Private DNS status in Settings โ†’ should show "Connected"
  • Visit http://adult.filterdns.net - should show "This site can't be reached"
  • Visit https://dnsleaktest.com - should show your DNS server
  • Use a network monitoring app to confirm DoT traffic on port 853

โ†ฉ๏ธ How to Roll Back

To revert to your previous DNS settings:

Step 1: Open Private DNS Settings

Go to Settings โ†’ Network & internet โ†’ Private DNS.

Step 2: Revert to Automatic

Select Automatic (or Off depending on your device).

This will restore your ISP's default DNS settings.

Step 3: Clear DNS Cache

Restart your device to clear the DNS cache.

Or use a network reset: Settings โ†’ System โ†’ Reset โ†’ Reset network settings.

๐ŸŽฏ Summary


๐Ÿš€ Quick Reference:
Private DNS: dns1.oss.co.za
DoH (3rd-party): https://dns1.oss.co.za/testclient123/dns-query

๐Ÿค– Android Navigation Path:
Settings โ†’ Network & internet โ†’ Private DNS โ†’ Private DNS provider hostname