Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > iPhone, iPod and iPad > iPhone > iPhone Tips, Help and Troubleshooting

Reply
 
Thread Tools Search this Thread Display Modes
Old Aug 6, 2008, 03:19 PM   #1
Acejam2k
macrumors regular
 
Join Date: Jul 2008
iPhone PPTP VPN --> DNS resolution does not work!

Hey all,

I'm trying to access a company intranet website through my company's VPN. We have a simple PPTP VPN server. (MS Server 2k3)

I'm able to connect fine. I'm able to browse to one of our intranet sites via IP address fine. But I cannot browse using hostnames or fully qualified domain names. (FQDNs) All of this si being done through Safari obviously.

Therefore, this means there is a DNS resolution issue. In VPN settings, I've tried setting "Send all traffic" to both on and off, and neither works. (should be on though)

Has anyone else got this to work using either PPTP or even L2TP? (and not CISCO)
Acejam2k is offline   0 Reply With Quote
Old Aug 7, 2008, 10:48 AM   #2
Acejam2k
Thread Starter
macrumors regular
 
Join Date: Jul 2008
Anyone else get non-cisco VPN working?
Acejam2k is offline   0 Reply With Quote
Old Aug 13, 2008, 01:00 PM   #3
rizajj
macrumors member
 
Join Date: Jul 2008
same problem here. can VPN into our MS PPTP VPN, but cannot do anything with FQDNs, only IPs.

From my 'research', it appears that one major issue is that OS X (and I'm assuming the iPhone OS) uses the ".local" extension for Bonjour services. Is your VPN's domain end in ".local"? That could be part of it. In OS X, you can just say that ".local" domain should be included in the VPN settings for traffic. But we dont have that option on the iPhone.

So, my impression is, if you have a ".local" domain, it simply won't work. Bummer.


Someone prove me wrong!!!
rizajj is offline   0 Reply With Quote
Old Aug 14, 2008, 10:30 AM   #4
JamboUK
macrumors member
 
Join Date: Jul 2007
I was just doing a search for the solution to the exact same problem. I can use IP addresses to go where I want on the network once VPN is established but I cannot use DNS - which is ideally what I need.

My router is a Vigor (so again no Cisco) and I connect using PPTP. Be nice to have some help on this!!
JamboUK is offline   0 Reply With Quote
Old Aug 14, 2008, 10:31 AM   #5
JamboUK
macrumors member
 
Join Date: Jul 2007
Red face

Quote:
Originally Posted by rizajj View Post
same problem here. can VPN into our MS PPTP VPN, but cannot do anything with FQDNs, only IPs.

From my 'research', it appears that one major issue is that OS X (and I'm assuming the iPhone OS) uses the ".local" extension for Bonjour services. Is your VPN's domain end in ".local"? That could be part of it. In OS X, you can just say that ".local" domain should be included in the VPN settings for traffic. But we dont have that option on the iPhone.

So, my impression is, if you have a ".local" domain, it simply won't work. Bummer.


Someone prove me wrong!!!
and yes we also have a .local domain.
JamboUK is offline   0 Reply With Quote
Old Aug 14, 2008, 10:35 AM   #6
Mindflux
Banned
 
Join Date: Oct 2007
Location: Austin
Same thing here. No DNS resolution.
Mindflux is offline   0 Reply With Quote
Old Aug 14, 2008, 10:41 AM   #7
JamboUK
macrumors member
 
Join Date: Jul 2007
Quote:
Originally Posted by Mindflux View Post
Same thing here. No DNS resolution.
Well at least I now know I am not alone and doing something wrong. Which is small consulation!
JamboUK is offline   0 Reply With Quote
Old Aug 22, 2008, 04:39 PM   #8
tjmarques
macrumors newbie
 
Join Date: Aug 2008
disable ipv6

I was having the same problem on my mac and completely disabling ipv6 in vpn settings worked. maybe the same holds true for the iphone?
tjmarques is offline   0 Reply With Quote
Old Aug 22, 2008, 11:32 PM   #9
Blackforge
macrumors regular
 
Join Date: Mar 2008
FQDNs via my work's MS PPTP VPN work fine for me. Using just the hostname does not work though. Our internal domain ends in .com though.
Blackforge is offline   0 Reply With Quote
Old Aug 23, 2008, 05:33 AM   #10
sdsvtdriver
macrumors 6502a
 
Join Date: Jul 2008
Location: San Diego
Are you receiving IP/DNS automatically or are you setting it statically?
sdsvtdriver is offline   0 Reply With Quote
Old Aug 24, 2008, 01:08 AM   #11
Acejam2k
Thread Starter
macrumors regular
 
Join Date: Jul 2008
Quote:
Originally Posted by sdsvtdriver View Post
Are you receiving IP/DNS automatically or are you setting it statically?

Everything is dhcp, so that would be automatically. It sounds like there may be an issue with .local domain extensions.
Acejam2k is offline   0 Reply With Quote
Old Jul 15, 2010, 02:35 AM   #12
bradhs
macrumors member
 
Join Date: Jun 2010
iPhone 4 and same problem... Anyone know of a solution? I really need this to work.

Quote:
Originally Posted by Acejam2k View Post
Everything is dhcp, so that would be automatically. It sounds like there may be an issue with .local domain extensions.
bradhs is offline   0 Reply With Quote
Old Aug 6, 2010, 01:55 AM   #13
lhs0002
macrumors newbie
 
Join Date: Aug 2010
Wink Iphone 3Gs - IO 4.0 Vpn OK now

I'm not use to take part of a forum, Iphone VPN , I think find the bug,
After finish you conf in VPN , just on /off then when he try to connect, go back to the conf and you will see the DNS to reach, just push your finger on the DNS to force VPN to use this DNS.
Voila Thanks. For me it work, otherwise you can also use GuizmoOVPN.
lhs0002 is offline   0 Reply With Quote
Old Aug 6, 2010, 01:36 PM   #14
bradhs
macrumors member
 
Join Date: Jun 2010
I didnt find any DNS settings/status/config while the VPN is on or off.

Maybe that's the issue? The iPhone is not properly requesting/receiving DNS from the Microsfot RRAS server.

Quote:
Originally Posted by lhs0002 View Post
I'm not use to take part of a forum, Iphone VPN , I think find the bug,
After finish you conf in VPN , just on /off then when he try to connect, go back to the conf and you will see the DNS to reach, just push your finger on the DNS to force VPN to use this DNS.
Voila Thanks. For me it work, otherwise you can also use GuizmoOVPN.
bradhs is offline   0 Reply With Quote
Old Oct 6, 2010, 05:45 PM   #15
lorenz meier
macrumors newbie
 
Join Date: Oct 2010
Quote:
Originally Posted by Acejam2k View Post
Hey all,
Has anyone else got this to work using either PPTP or even L2TP? (and not CISCO)

Here's the solution if you are using the open source PPTPD server (my example: Ubuntu 10.04). I will be using the Google DNS servers, but feel free to use yours:

sudo nano /etc/ppp/pptpd-options

Make sure the following lines are enabled. Note that you have to provide dns AND wins servers for the iPhone to correctly set the dns!



ms-dns 8.8.8.8
ms-dns 4.4.4.4

ms-wins 8.8.8.8
ms-wins 4.4.4.4




Hope it helps
Cheers
Lorenz
lorenz meier is offline   0 Reply With Quote
Old Oct 6, 2010, 05:52 PM   #16
south8212
macrumors 6502
 
Join Date: Oct 2008
I would imagine this is not possible without being able to edit the host file on the iPhone.

Last edited by south8212; Oct 6, 2010 at 06:06 PM.
south8212 is offline   0 Reply With Quote
Old Oct 7, 2010, 03:30 AM   #17
lorenz meier
macrumors newbie
 
Join Date: Oct 2010
Quote:
Originally Posted by bryan1884 View Post
I would imagine this is not possible without being able to edit the host file on the iPhone.
You don't edit anything on the iPhone...this is the configuration of your PPTP server, and it makes sure the right info about the DNS servers is pushed across to the iPhone.
lorenz meier is offline   0 Reply With Quote
Old Apr 13, 2011, 05:32 PM   #18
iPhone Addict
macrumors 6502
 
Join Date: Jun 2009
Location: San Francisco, CA
Any way to get this to work if I'm using Win7 VPN server with an iPhone 4 as the client?

I can browse via IP addresses once I connect to my Win7 VPN but cannot browse to any sites with the actual website name.

Thank you.
iPhone Addict is offline   0 Reply With Quote
Old Jan 23, 2012, 02:39 PM   #19
polychro
macrumors newbie
 
Join Date: Jan 2012
This thread has been going on for 2 years (2.5 now). No solution to this problem? I have no problem with my MacBook Pro but both iphone 4 and iPad2 (both on iOS 5.01) connect to a win xp pptp server but no DNS resolution.
Thanks for any help anyone could provide.
polychro is offline   0 Reply With Quote
Old Mar 6, 2012, 01:38 PM   #20
arnault38
macrumors newbie
 
Join Date: Mar 2012
Hi !

I have the same problem and it's impossible to find a solution through the web...

I configure a PPTP connexion between my iPhone and a pfsense router (based on FreeBSD)
I can access to my intranet with the server's Ip but not with name resolution.

I try to find a solution to force dns server on the iphone but it's not a best practice in business environment...

Thanks for your help...
arnault38 is offline   0 Reply With Quote
Old Jan 4, 2013, 02:29 AM   #21
nicloay
macrumors newbie
 
Join Date: Jan 2013
Quote:
Originally Posted by lorenz meier View Post
sudo nano /etc/ppp/pptpd-options


ms-dns 8.8.8.8
ms-dns 4.4.4.4

ms-wins 8.8.8.8
ms-wins 4.4.4.4


Lorenz
This solution works!!.
I faced the similar problem, i tried to modify pptpd-options, tried to include this parameters to /etc/pptpd.conf. but anyway clients didn't receive any DNS parameters.

So, if someone faced similar problem, please make sure that you modify correct config files, because, for example, on CentOS you need to modify /etc/ppp/options.pptpd instead of file provided by Lorenz.

To find correct file you can use

Code:
grep ms-dns /etc/ppp/*
Default configs usually contains this parameters (ms-dns and ms-wins) but they are comented.

Hope this helps someone =)
nicloay is offline   0 Reply With Quote
Old Jan 4, 2013, 11:30 AM   #22
bradhs
macrumors member
 
Join Date: Jun 2010
What works for me is to fully qualify the computer name. Make sure you have a domain assigned to the VPN connection and you should be fine. Instead of typing mycomputer type mycomputer.mydomain.local (or whatever it is.)

Quote:
Originally Posted by polychro View Post
This thread has been going on for 2 years (2.5 now). No solution to this problem? I have no problem with my MacBook Pro but both iphone 4 and iPad2 (both on iOS 5.01) connect to a win xp pptp server but no DNS resolution.
Thanks for any help anyone could provide.
bradhs is offline   0 Reply With Quote

Reply
MacRumors Forums > iPhone, iPod and iPad > iPhone > iPhone Tips, Help and Troubleshooting

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
VPN by iPhone work but at MacBook doesn't work! why ? Jingol Mac Basics and Help 1 Sep 12, 2013 04:40 PM
PPTP VPN issue with ML Apfpilot OS X 10.8 Mountain Lion 4 Aug 7, 2012 01:48 PM
PPTP VPN issue with OSX 10.7 jaymara2012 Mac OS X 10.7 Lion 0 Aug 2, 2012 10:33 AM
L2TP/PPTP connection to exclude torrents (or VPN?) chiappa OS X 0 Jul 1, 2012 05:03 AM

Forum Jump

All times are GMT -5. The time now is 02:29 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC