It's seems that it's detecting the default gateway in the reply to the stock vpn clients dhcp broadcast and using that as the nameserver (completely ignoring the dhcp broadcast's dns) and defaulting to 8.8.8.8 for anything other than the default gateway.
Vpn plus android android#
So android is doing something interesting. When I tried using my nameserver on the same machine as the vpn endpoint - 192.168.1.2 - lookups fail completely - using a dns query app. DNS started going back to 8.8.8.8 again showing that android is somehow aware of dns servers that don't exist - not a single request went there according to wireshark. So then i changed that to 192.168.1.253 to see what would happen. I changed the dns on my phone to the plusnet router - 192.168.1.254 and suddenly dns requests were going straight to the router. Additionally when i fired up wireshark using the filter (ip.addr = 192.168.1.206) & (dns) I saw that all the dns requests were being sent to 8.8.8.8 - google. Openvpn cetrainly requires that you push a DNS address, for example the following link shows opendns servers being pushed.ĭone the leak test (thanks) all the dns servers show up as google. Is your VPN server pushing the LAN DNS to the clients? Ít should show which DNS the phone is using. Have you tried a DNS leak test on the phone? clearly I need my dns requests to go to my Win7 machine but despite being connected by VPN it's not working and is somehow using it's usual 4G to the normal internet - which I understood to be completely overridden by VPN. When I try to access an intranet domain there is no DNS request seen by my name server yet when I try to visit something like my phone opens the page with no problem. I have a nameserver running on the same machine which hosts these internal intranet names and also acts as a resolver to the outside world. Now the problem I have is that I am unable to access any part of my intranet by domain name - eg 7up.lan and various others ending with.
![vpn plus android vpn plus android](https://d1v4btv2rwszby.cloudfront.net/public/images/android_vpn_stp_img.png)
The VPN endpoint shows an IP of 192.168.1.200
![vpn plus android vpn plus android](https://www.apkheist.com/wp-content/uploads/2021/02/PicsArt_02-27-03.jpg)
The VPN endpoint is my Win7 Home Premium desktop machine. Using the x-plore app on android I am able to access the LAN and my files so I'm happy with that. I got my VPN setup on my phone using the default android VPN setup and it works well enough in that I can access my local intranet by IP address and my file shares.