Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Is there a way to set a global DNS server that will be used for all connections (both Wi-Fi + cellular data)? If there isn't a uniform manner to specify DNS, can I just change the DNS used by the cellular connection?

Ideally, I am looking for an answer for vanilla iOS; however, I'd welcome any solution, including one that requires a jailbreak.

share|improve this question
add comment

2 Answers

up vote 3 down vote accepted

Yes, there is way. And since you're already JailBroken, it'll be so much easier. Just open up Cydia and search for GuizmoDNS. It's from the ModMyi repository, which comes preconfigured with Cydia. It allows you to select the DNS server to go through when using a cellular data network, and it does it right from the Settings app.

share|improve this answer
add comment

I'll cover the no-jailbreak scenario and leave editing or another answer for someone that knows how to change this by modifying iOS.

Without a jailbreak, no. The cellular data is governed by APN settings. You can change these with the iPhone configuration utility and some learning.

enter image description here

The Wi-Fi settings are easy to override using the device itself, but it's not global but instead an override on a per-network name basis. Go to the network settings for a specific Wi-Fi. Under the detailed screen (tap the blue > sign once you are connected) and swipe up to expose the DHCP / BootP / Static IP address part of the screen. You can tap to edit DNS and append, delete or substitute your choice of DNS settings from that screen.

When I need to run a custom DNS, I often use VPN to get to a router with known settings and this works over Wi-Fi and cellular data since all traffic goes to the VPN where I can control the DNS. This requires time and a server (Amazon web service free tier is ideal for low cost hosting).

share|improve this answer
    
I am aware of how to do it per-WiFi, and unfortunately I don't have a VPN. However, my phone is jailbroken, so I'd welcome an answer for jailbroken phones... –  houbysoft Jun 4 '12 at 19:41
    
Let's see what happens - you might edit the question (and I added jailbreak so prominently in the answer since I suspect someone knows how to do it there.) The use case is so eminently useful and the jailbreak community might be coincidentally motivated to steer traffic away from certain DNS or towards another for a variety of reasons (some of them surely legitimate). –  bmike Jun 4 '12 at 20:08
1  
I've just edited the question to specify I wouldn't mind an answer that needs a jailbreak. –  houbysoft Jun 4 '12 at 20:58
    
@houbysoft I'll look into this and see if I can find anything. –  Andrew Larsson Jun 5 '12 at 23:17
1  
Are you sure your answer is correct? I looked at the iPhone Config. Util but I can't find any DNS settings for the APN :( –  hcris Aug 29 '13 at 12:17
show 1 more comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.