iOS DNS not being pushed

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
speedenator
OpenVpn Newbie
Posts: 2
Joined: Thu Jan 19, 2017 1:52 am

iOS DNS not being pushed

Post by speedenator » Thu Jan 19, 2017 1:57 am

Hi,

We have a working OpenVPN server & connection using MacBooks & Tunnelblicks.
We're trying to enable this via iOS.

Using the same .ovpn file, we can get a connection and connect to a few "behind the VPN" servers that are part of our .com domain (e.g. http://www.dev.frotz.com).

However, when connecting to our internal hosts (e.g. scheduler.frotz.internal), DNS is not resolving --- OpenVPN is not setting DNS properly nor does it appear to be setting the search domain.

Here is the relevant portion of the client .ovpn. Note I've manually added the two dhcp-option strings, and have played a bit with enclosing the values in quotes or not, but nothing seems to actually work. Given that things are working on OSX boxes, I'm inclined to believe the server is performing correctly. Any ideas what we are doing wrong?

dhcp-option DNS "172.16.0.2"
dhcp-option DOMAIN ".frotz.internal"

setenv FORWARD_COMPATIBLE 1
client
proto tcp
remote lb-frotz.com
port 443
dev tun
dev-type tun
ns-cert-type server
reneg-sec 604800
sndbuf 100000
rcvbuf 100000
# NOTE: LZO commands are pushed by the Access Server at connect time.
# NOTE: The below line doesn't disable LZO.
comp-lzo no
verb 3
setenv PUSH_PEER_INFO

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: iOS DNS not being pushed

Post by TinCanTech » Thu Jan 19, 2017 11:54 am

Check your log files for errors ..

speedenator
OpenVpn Newbie
Posts: 2
Joined: Thu Jan 19, 2017 1:52 am

Re: iOS DNS not being pushed

Post by speedenator » Thu Jan 19, 2017 5:35 pm

Yeah, we did that. The DNS and Search Domains are present in the logs so it looks like they are being sent, just not set.

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: iOS DNS not being pushed

Post by TinCanTech » Thu Jan 19, 2017 6:15 pm

We'll take your word on that ..

sonictwinkie
OpenVpn Newbie
Posts: 1
Joined: Thu Mar 30, 2017 10:32 pm

Re: iOS DNS not being pushed

Post by sonictwinkie » Thu Mar 30, 2017 10:33 pm

Did you ever resolve this issue? I just found out I'm having the same problem. If I come up with a solution, I'll post back.

Post Reply