Hi,
it's possible that this is some trivial issue, but I can't figure it out on my own. I have the same VPN configuration files on two computers running Windows 10. Both are hooked up to the same router, although one via WiFi and the other via an Ethernet cable.
When connecting from computer #1 via VPN, it uses the DNS servers it gets via VPN and I can access the remote servers by their name. Anyway, when I try to execute e.g. "nslookup www.google.com" it shows me that the name on the DNS server provided by the VPN is looked up.
Connecting to computer #2 via VPN, I can see that it uses my local router (192.168.0.1) as DNS after connecting. This can be seen, for example, through the same nslookup command. In this situation the servers from the remote network are not visible by name, I only have access by IP address.
What can this difference be due to? How to force the computer #2 to use remote DNS servers when using VPN?
The issue of DNS server selection
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
-
- OpenVpn Newbie
- Posts: 3
- Joined: Mon Nov 09, 2020 2:42 pm
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
Re: The issue of DNS server selection
Push a DNS server to your client.
-
- OpenVpn Newbie
- Posts: 3
- Joined: Mon Nov 09, 2020 2:42 pm
Re: The issue of DNS server selection
Both computers connect to the same VPN server. And I have no control over that server, it's my company's server.
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
Re: The issue of DNS server selection
Then ask your company IT department for support.
-
- OpenVpn Newbie
- Posts: 3
- Joined: Mon Nov 09, 2020 2:42 pm
Re: The issue of DNS server selection
They say the server side is correct. Others do not have the problem.
And I see this in my log:
Isn't it that DNS adresses are received correctly?
And I see this in my log:
Code: Select all
PUSH: Received control message: 'PUSH_REPLY,route 192.168.0.0 255.255.252.0,route-gateway 192.168.24.1,topology subnet,ping 10,ping-restart 120,dhcp-option DNS 192.168.252.200,dhcp-option DNS 192.168.252.201,route 192.168.252.0 255.255.255.0,dhcp-option DOMAIN <censored>,ifconfig 192.168.24.220 255.
-
- OpenVPN User
- Posts: 20
- Joined: Mon May 31, 2021 4:51 pm
Re: The issue of DNS server selection
you can configure the primary DNS to be used with your connection.