I've been trying to make my iPhone working with OpenVPN, but I have a similar issue with the DNS resolution.
Is this bug fixed in the 1.0.4 iOS build?
Same server/client configuration works on Mac and Windows. iOS doesn't set the DNS correctly, although the connection works.
On the server:
...
push "dhcp-option DNS 10.8.0.1"
push "redirect-gateway def1 bypass-dhcp"
...
Other details:
- I've dnsmasq to forward all DNS requests
- 10.8.0.1 is the vpn gateway
- 10.8.0.6 is the vpn client
Using a Mac/Windows client, capturing the network traffic shows the following:
07:47:12.949387 IP 10.8.0.6.56521 > google-public-dns-a.google.com.domain: 4249+ A? www.amazon.com. (32)
...
DNS response with IP
Instead, using iOS, I get the following:
07:44:50.310893 IP 10.8.0.6.64316 > 10.8.0.1.domain: 23194+ A? www.google.com. (32)
Note the
10.8.0.1.domain
Any workaround/suggestion? Thanks in advance