Windows OpenVPN no DNS Resolve only direct IP internet

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
good4y0u
OpenVpn Newbie
Posts: 1
Joined: Sun Aug 06, 2023 7:39 pm

Windows OpenVPN no DNS Resolve only direct IP internet

Post by good4y0u » Sun Aug 06, 2023 7:45 pm

Windows OpenVPN Profile Troubleshooting:

When I connect using a openvpn profile on my android device it connects no problem, and has local + internet access.
When I connect on my Windows 11 laptop I have local access but no DNS resolution for Internet.
When I ping google.com there is no response. But if I connect directly to Google IP

Code: Select all

142.250.191.206 
I can access google search.

I was hoping someone else had a seen this issue before

Windows 11 OpenVPN connect is

Code: Select all

Version 3.3.7(2979)
OpenVPN server is containerized https://github.com/flant/ovpn-admin/

Code: Select all

bash-5.1# openvpn --version
OpenVPN 2.5.6 x86_64-alpine-linux-musl [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Apr 17 2022
library versions: OpenSSL 1.1.1u  30 May 2023, LZO 2.10

User avatar
JosephS
OpenVPN Inc.
Posts: 54
Joined: Fri Feb 17, 2023 5:15 pm

Re: Windows OpenVPN no DNS Resolve only direct IP internet

Post by JosephS » Mon Aug 07, 2023 8:42 am

Hi, good4y0u.

When connecting to the VPN do you see a DNS server being pushed in the client logs?
Can you check if the TAP interface is updated with that DNS resolver by performing ipconfig /all in the command prompt?

I'm not familiar with the configuration options of your server. But, on the server side do you have an option to provide a default domain name to clients instead of of pushing a list of DNS servers? I've seen that in some cases it fixes the issue that you are describing.

Post Reply