Changing the DNS on your iPhone is quite easy. Usually, the Wi-Fi that you select on your iPhone automatically assigns the DNS based on router configuration. But occasionally, you might have to change the DNS yourself.
We’ll get to the reasons later. Here’s how to change the DNS setting on your iPhone or iPad. Note that this is a beginner post aimed at people who are unfamiliar with this (or new to iPhones/iPads). If you know this already, feel free to skip.
How to Change DNS on iPhone/iPad
Step #1. Open the Settings app
Step #2. Tap on Wi-Fi. If it’s switched off, turn it on.
Step #3. Pick a Wi-Fi network and tap on the blue “i” icon.
Step #4. Tap on the text-field across the DNS label.
Step #5. Enter the DNS addresses (scroll down for free DNS servers.)
Step #6. Tap on Wi-Fi on top to go back. The changes are saved automatically.
After doing this, you might want to restart Wi-Fi on iPhone to see if the DNS change has taken effect. Next up, fire up Safari on your iPhone/iPad and check to see if web pages load correctly.
Free DNS Servers
I usually pick two DNS services (Google and OpenDNS) but there are like a gazillion DNS service providers out there. You can pick them from this list here.
Google: 22.214.171.124, 126.96.36.199
OpenDNS: 188.8.131.52, 184.108.40.206
You enter them as it is in the DNS field.
DNS Changes Sometimes Fix Wi-Fi Issues on iPhone
If you run into DNS-specific Wi-Fi issues on your iPhone, changing the DNS helps. Of course, this doesn’t happen all the time. When it does, you most likely run into Wi-Fi issues on all the connected devices that share the same DNS setting.
DNS servers are set by default in most cases. When the set DNS stops working, your Wi-Fi connectivity gets hit. A simple change in the DNS can fix it.
Parental-Controls through DNS
Sometimes, you want to prevent your kid from accessing bad websites through Safari. While there are many parental controls to pick from within Settings → General → Restrictions, if you’d prefer a blanket DNS-level control (it’s easier but it doesn’t prevent apps from installing/running), you can use OpenDNS’s FamilyShield.
To use this, just set the DNS field to 220.127.116.11, 18.104.22.168.
Troubleshooting a DNS Cache Problem on iPhone and iPad
Sometimes (very rarely), you might find that when you set a DNS, it doesn’t really take effect immediately. One fix that I’ve heard people use it to flush DNS
To flush the DNS cache, you just put your iPhone/iPad in Airplane Mode and then turn off Airplane Mode after a while.