The issue of DNS server selection

This forum is for general conversation and user-user networking.
Post Reply
graulv
OpenVpn Newbie
Posts: 3
Joined: Mon Nov 09, 2020 2:42 pm

The issue of DNS server selection

Post by graulv » Tue Jun 15, 2021 9:08 am

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?

User avatar
TinCanTech
Forum Team
Posts: 9431
Joined: Fri Jun 03, 2016 1:17 pm

Re: The issue of DNS server selection

Post by TinCanTech » Tue Jun 15, 2021 10:39 am

Push a DNS server to your client.

graulv
OpenVpn Newbie
Posts: 3
Joined: Mon Nov 09, 2020 2:42 pm

Re: The issue of DNS server selection

Post by graulv » Tue Jun 15, 2021 10:51 am

Both computers connect to the same VPN server. And I have no control over that server, it's my company's server.

User avatar
TinCanTech
Forum Team
Posts: 9431
Joined: Fri Jun 03, 2016 1:17 pm

Re: The issue of DNS server selection

Post by TinCanTech » Tue Jun 15, 2021 10:59 am

Then ask your company IT department for support.

graulv
OpenVpn Newbie
Posts: 3
Joined: Mon Nov 09, 2020 2:42 pm

Re: The issue of DNS server selection

Post by graulv » Tue Jun 15, 2021 12:18 pm

They say the server side is correct. Others do not have the problem.

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.
Isn't it that DNS adresses are received correctly?

Stephanie_Sy
OpenVpn Newbie
Posts: 3
Joined: Mon May 31, 2021 4:51 pm

Re: The issue of DNS server selection

Post by Stephanie_Sy » Fri Jul 02, 2021 2:22 am

you can configure the primary DNS to be used with your connection.

Post Reply