Webpages do not load or DNS leaks when connecting via NetworkManager

    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:

    Syntax may differ depending on your Linux distro, substitute where required
    1. Install the resolvconf package:

      #sudo apt-get install resolvconf
    2. Open head file..:

      #sudo nano /etc/resolvconf/resolv.conf.d/head

      … and on the new line (without quotes) enter nameserver and on another line nameserver Ctrl+X to save changes and exit the file.

    3. Restart your system to apply the DNS changes or edit the resolv.conf file to apply the DNS immediately:

      #sudo nano /etc/resolv.conf

      Add both of our DNS IP addresses:


      Remove or comment out (by adding ‘#’ at the beginning of the line) lines containing your real DNS IP address
      Using a different Internal IP addresses activates the AntiTracker:

      • = regular DNS with no blocking (OpenVPN)
      • = standard AntiTracker to block advertising and malware domains
      • = Hardcore Mode AntiTracker to also block Google and Facebook domains
    4. 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 IP address:

      Non-authoritative answer:
      Name:	ivpn.net

      When connected to IVPN,

      Non-authoritative answer:
      Name:	ivpn.net


    1. In some Linux distros, there may be multiple services affecting the DNS sub-system. If you see an entry like nameserver 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
    2. Another way to put and keep DNS servers in the resolv.conf file involves creating a file and changing a file attribute to preserve the file and contents:

      sudo rm -i /etc/resolv.conf

      Add our DNS servers to the resolv.conf file:

      #sudo nano /etc/resolv.conf

      Press Ctrl+X to save and exit the nano editor, then change the file attribute to prevent writes or file changes:

      sudo chattr +i /etc/resolv.conf

      This file attribute change persists over a reboot. Undo this change with:

      sudo chattr -i /etc/resolv.conf

      … then restart your computer system to allow the resolv.conf file to be populated automatically.

    Related Articles

    Still have questions?

    Get in touch and we'll get back to you in a few hours.

    Contact support

    Interested in privacy?

    Read our latest privacy news and keep up-to-date on IVPN services.

    Visit IVPN Blog
    Spotted a mistake or have an idea on how to improve this page?
    Suggest an edit on GitHub.