A
A
Andrey Mavlyanov2015-02-26 00:08:22
Domain Name System
Andrey Mavlyanov, 2015-02-26 00:08:22

What is the order of looking up DNS servers in Windows 7 / 8 / 8.1?

Given: client machines running windows 7 / 8 / 8.1
openvpn client (the last one from the community site)
When connecting to the Internet, two DNS servers are assigned: 8.8.8.8 and 8.8.4.4. Then, when connecting via OpenVPN (tap interface, if it matters), two more DNS servers "fall" from the vpn server: 192.168.50.10 and 192.168.70.10.
From the output of ipconfig / all you can see that the first two "hang" on eth, and the second two on tap.
How to make a DNS client on a computer look up DNS servers in the following order:
192.168.50.10
192.168.70.10
8.8.8.8
8.8.4.4
Addendum: On GNU/Linux and OS X clients, /etc/resolv.conf is simply overwritten when the client connects to the OpenVPN server and restored afterwards. It is also clear how to change this behavior on these OSes. But as in Windows - no.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
vitaliy_saveliev, 2015-02-28
@vitaliy_saveliev

If I understand the question correctly, then when the OpenVPN client connects to the server, the server issues only 2 server dns addresses, but 4 are needed.
If so, then these dns must be added in the OpenVPN server configuration file.
config file usually in /etc/oepnvpn/server.conf
push "dhcp-option DNS 192.168.50.10"
push "dhcp-option DNS 192.168.70.10"
link to howto

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question