Block DNS queries in Windows when disabling OpenVPN
When connecting to the MultiVPN server on the OpenVPN, you are assigned two default DNS resolvers. At the same time, your provider's DNS servers become temporarily unavailable for use, which helps to avoid DNS leaks in your system.
However, after the session with the OpenVPN server ends, the DNS servers of the provider become available again! If you disconnect from the VPN server by accident, your privacy may be compromised!
You can completely block all DNS queries on your system if they do not fit into the scope of an OpenVPN connection.
Open Network and Sharing Center
In the window that opens, go to "Change adapter settings"
Right-click the network adapter and select the "Properties" menu item
Disable Internet Protocol Version 6 (more). Select Internet Protocol Version 4 and click Properties
Switch to the "Use the following DNS server addresses" mode and enter the specified IP addresses of the DNS resolvers of the MultiVPN service in the corresponding fields. In this example, the preferred DNS server is located in Europe. 18.104.22.168 - Slovenia (NS1). An alternate DNS server is located in North America. 22.214.171.124 - Canada (NS2). Apply the settings by clicking "OK". These settings are suitable for those who most often use VPN servers in Europe.
Another example of configuring MultiVPN DNS servers. These settings are suitable for those who most often use VPN servers in America. 126.96.36.199 - Canada (NS2), 188.8.131.52 - Slovenia (NS1).
We recommend that you perform the same steps with all network adapters in your system.
Now, all DNS queries in your system are processed by MultiVPN network servers. These servers will block DNS queries if they came not from the VPN service network.
To unblock DNS queries using this method, switch to the "Obtain DNS server address automatically" mode and apply these settings.