hosting image
How to avoid incorrect domain name resolution failure when using VPN

Image Credits: Pixabay

How to avoid incorrect domain name resolution failure when using VPN

Why do I get the domain name resolution error when using a VPN

What is the problem with this error when trying to establish a VPN connection in Windows? This appears when there is a problem with the DNS. For example, we have incorrectly configured the public DNS servers or the ones we are using do not work correctly for some reason.

What the VPN does is encrypt the Internet connection and allow us to surf anonymously through the network, but for this to be possible it is necessary that it connects correctly to the DNS. The problem is usually present in the latter, in the DNS servers that we are using, since the VPN may be perfectly installed but give this error code.

However, it could also happen that the VPN we are using does not meet the requirements of the public DNS we are using on the computer. This will also cause the domain name resolution error.

Whatever the reason, we can easily fix it by changing the DNS servers. Simply by doing this it should already work unless we go back to using others that do not work for that VPN or that also generate errors.

Steps to fix this error

After explaining what are the main causes for the domain name resolution error to appear when using a VPN, we are going to mention what we can do to fix it and make it work normally. The main thing will be to change the DNS servers that we are using, but we will also see that it may be an error in the VPN that we have installed.

Change DNS servers

The first thing we are going to do is change the DNS servers that we are using in Windows. They serve as translators since they are in charge of deriving the domain name that we put, such as SpeedNetz, to the corresponding IP address. This prevents us from having to remember nonsense numbers and simply know their name.

To change the DNS servers in Windows we have to go to Start, we enter Settings, we go to Network and Internet, and from there to Change adapter options. Now a new window will open where all the network cards that we have configured will appear. For example, the Wi-Fi card and the Ethernet card may appear. We must select the one that interests us, which will be the one we are using to navigate.

You have to click with the right mouse button and then click Properties. Once this is done, a new window will open and we have to look for Internet Protocol version 4 (TCP / IPv4) and click Properties again.

A new window will appear. If we have manually configured both the IP address and the DNS servers, they will appear there. If it is automatic, it will simply appear empty. What interests us is to change the DNS servers, which appear below.

We have to click Use the following DNS server addresses and fill it in. It is possible that we have removed those from the operator and when using others, the problem of domain name resolution is generated when using the VPN. But it could even happen that it is the operators that are causing problems.

What DNS servers can we use? There are many available and some of the most popular and best performing are those from Google and Cloudflare. We would have to put the following:

  • Google DNS: 8.8.8.8 and 8.8.4.4
  • Cloudflare DNS: 1.1.1.1 and 1.0.0.1

From that moment on, our equipment will connect to the Internet through the DNS servers that we have changed. It is something that we can modify at any time and it could even help improve both speed and safety.

Check that the VPN is installed correctly

Have we installed the VPN correctly? We have been able to change something in the configuration and this problem appears? We must check it out. The VPN is an application that needs to be installed correctly and of course that the configuration is correct and that there are no problems.

If we have installed the program recently or if we have updated it, we may have to change some parameters of the configuration so that it is enabled correctly. We will have to review it and see if there is something wrong that is why it does not work properly.

Use another VPN

The type of VPN that we use is going to be essential for it to work better or worse. There are many options available, both free and purchasable. However, the ones that are free are not the best option. They can pose a significant problem both for safety and for proper operation.

Our advice is to use a VPN that is reliable, purchased, stable, that offers good performance. Avoid both free and trial ones. For example, we can use ExpressVPN, NordVPN, or ProtonVPN, which are some of the most reliable and used options.

If we see that when changing the DNS servers and verifying that everything is properly installed and configured, the domain name resolution error continues to appear when using the VPN, it is likely that the failure is due to the program we are using. In this case, there would be no choice but to try a different one and see if this is solved and we can navigate normally.

In short, if when using a VPN we find the problem of domain name resolution, it is possible that it occurs due to a failure in the DNS servers, although it could also be due to some bad configuration of the program itself or because of using one that does not work well. We have seen what we can do to solve it and the main thing is to use other DNS servers, which we can easily change.