Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Set Up Private DNS on iPhone: Step-by-Step

· 5 min read · Home Networking

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Setting up a private DNS on your iPhone lets you encrypt your DNS queries, which hides your browsing history from your internet service provider and helps block trackers or malicious sites. Apple added built-in support for DNS-over-HTTPS (DoH) and DNS-over-TLS (DoT) starting in iOS 14, so you don’t need a third-party app. This guide walks you through both the automatic configuration (using a DNS profile) and the manual method (if you have a specific server address). You’ll need your DNS provider’s server address or a configuration profile link—both are usually free from services like Cloudflare, NextDNS, or Quad9.

What You'll Need

  • An iPhone running iOS 14 or later (check in Settings > General > About > iOS Version).
  • A DNS provider’s server address (e.g., Cloudflare’s 1.1.1.1, Quad9’s 9.9.9.9) or a configuration profile link from that provider.
  • Wi-Fi or cellular connection to download the profile (if using the automatic method).

Step-by-Step

Method 1: Using a Configuration Profile (Recommended for most users)

  1. Open Safari on your iPhone and go to your DNS provider’s official website. For example, for Cloudflare, visit 1.1.1.1 and look for the “DNS” or “Setup” section. For NextDNS, log into your dashboard and find the “Setup” tab.
  2. Find the iOS or Apple configuration profile link. Providers often label it “Install Configuration Profile” or “iOS” – tap that link. Safari will download a .mobileconfig file.
  3. After the download finishes, a pop-up appears: “This website is trying to download a configuration profile. Do you want to allow this?” Tap Allow.
  4. Open the Settings app. You’ll see a new banner at the top: “Profile Downloaded.” Tap it.
  5. In the profile screen, tap Install in the top-right corner. Enter your iPhone passcode when prompted.
  6. Read the warning about the profile, then tap Install again. Confirm with Install one more time if asked.
  7. Tap Done when finished. Your private DNS is now active.

Method 2: Manual DNS Configuration (If you have a specific server address)

  1. Open Settings > General > VPN & Device Management (on older iOS versions, it’s just “Device Management”).
  2. Look for a section called DNS – if you don’t see it, you’ll need to use the profile method above, because manual entry isn’t available in stock iOS for DoH/DoT without a profile.
  3. If you see the DNS section, tap Add DNS Server and enter the server address (e.g., 1.1.1.1). This method only works for plain DNS, not encrypted DNS—so it’s not recommended for privacy. For encrypted DNS, use the profile method.

Note: Menu names can vary slightly depending on your iOS version and region. The profile method is the only way to get encrypted private DNS on iPhone without third-party apps.

Common Mistakes

  • Using the wrong profile link: Some providers offer separate profiles for DoH and DoT. Make sure you’re downloading the one labeled for iOS or Apple.
  • Not allowing the download: If you tap “Cancel” when Safari asks to download the profile, you’ll have to go back and tap the link again.
  • Forgetting to install after downloading: The profile isn’t active until you go to Settings and tap “Install.”
  • Using a VPN that overrides DNS: Some VPN apps force their own DNS, which can bypass your private DNS settings. Check your VPN’s settings.
  • Confusing private DNS with a VPN: Private DNS only encrypts DNS queries, not all your traffic. It doesn’t hide your IP address.

Tips

  • To verify your private DNS is working, visit a DNS leak test site (like dnsleaktest.com) in Safari. It should show the DNS provider you configured, not your ISP’s servers.
  • You can have multiple DNS profiles installed, but only one can be active at a time. To switch, go to Settings > General > VPN & Device Management, tap the profile you want, and select “Activate.”
  • If you use a content-blocking DNS like NextDNS, you can manage blocklists and analytics from the provider’s dashboard—changes apply automatically to your iPhone.
  • Private DNS works on both Wi-Fi and cellular connections, so you’re covered everywhere.
  • If you ever want to remove the profile, go to Settings > General > VPN & Device Management, tap the profile, and choose “Remove Profile.” This will revert to your ISP’s DNS.

Troubleshooting

If your private DNS isn’t working, try these steps in order:

  1. Restart your iPhone. A simple reboot often fixes profile activation glitches.
  2. Check that the profile is installed: Go to Settings > General > VPN & Device Management. You should see your DNS profile listed. If not, re-download and install it.
  3. Disable any VPN temporarily: If you have a VPN app running, turn it off and test again. Some VPNs override DNS settings.
  4. Forget and reconnect to Wi-Fi: Go to Settings > Wi-Fi, tap the “i” next to your network, then tap “Forget This Network.” Reconnect and re-enter the password. This can clear stale DNS settings.
  5. Update iOS: Go to Settings > General > Software Update to ensure you’re on the latest version—older iOS versions may have bugs with DNS profiles.
  6. Reinstall the profile: Remove the existing profile (as described in Tips), then download and install it again from the provider’s website.
  7. Try a different DNS provider: If the issue persists, install a profile from another provider (e.g., Cloudflare instead of NextDNS) to see if the problem is with the provider’s server.

If that did not work: Check the provider’s status page for outages. If their servers are down, your DNS queries may fail. You can also contact their support—most providers have a help center.

Frequently Asked Questions

Does private DNS on iPhone work on cellular data?

Yes, the configuration profile applies to all network interfaces—Wi-Fi and cellular—so your DNS queries are encrypted regardless of how you’re connected.

Will private DNS slow down my internet?

Usually no. In fact, it can speed up browsing because many providers use fast anycast networks. The encryption overhead is minimal on modern iPhones.

Can I use private DNS with a VPN?

Yes, but the VPN may override your DNS settings. If you want both, configure the VPN to use the same DNS provider, or disable the VPN’s own DNS feature if it has one.

Is private DNS the same as a VPN?

No. Private DNS only encrypts your DNS queries, not your internet traffic. A VPN encrypts all data and hides your IP address. They serve different purposes.

How do I know if my iPhone is using private DNS?

Visit a DNS leak test website in Safari. If the test shows your DNS provider’s server (like Cloudflare or NextDNS) instead of your ISP’s server, it’s working.

Can I set up private DNS without a profile?

No, iOS does not offer a built-in manual field for encrypted DNS servers. You must use a configuration profile or a third-party app (like 1.1.1.1) that installs a profile for you.