When you connect to a VPN server using the NetworkManager, you might discover that it does not apply IVPN DNS IP address automatically. This may lead to either websites' domain names not resolving or your real DNS is being used, which is considered as a leak.
If you are more comfortable with NetworkManager, feel free to apply IVPN DNS IP addresses manually:
- Install the resolvconfpackage:
#sudo apt-get install resolvconf
- Open head file..:
#sudo nano /etc/resolvconf/resolv.conf.d/head... and on the new line (without quotes) enter nameserver 10.0.254.1 and on another line nameserver 22.214.171.124. Cntrl+X to save changes and exit the file.
- Restart your system to apply the DNS changes or edit the resolv.conf file to apply the DNS immediately:
#sudo nano /etc/resolv.confAdd both of our DNS IP addresses:
nameserver 10.0.254.1 nameserver 126.96.36.199Remove or comment out (by adding '#' at the beginning of the line) lines containing your real DNS IP address
Confirm that your system is now using IVPN DNS. Running the, e.g. nslookup ivpn.net command should provide you with the following output.
When disconnected from IVPN, your system should use 188.8.131.52IP address:
Server: 184.108.40.206 Address: 220.127.116.11#53 Non-authoritative answer: Name: ivpn.net Address: 18.104.22.168When connected to IVPN, 10.0.254.1:
Server: 10.0.254.1 Address: 10.0.254.1#53 Non-authoritative answer: Name: ivpn.net Address: 22.214.171.124
In some Linux distros, there may be multiple services affecting the DNS sub-system. If you see an entry like nameserver 127.0.0.53 in the /etc/resolv.conf file after making the changes above and rebooting your computer system, you may have to disable the systemd-resolved service and reboot your system:
sudo systemctl disable systemd-resolved.service