/sc_assets/244/logo.png

DNS Fix Linux

Last updated by Shayne M on March 06, 2019 19:11

  1. Shut off The VPN connection
  2. Install dnsmasq
    sudo apt update sudo apt install dnsmasq
  3. Disable resolved
    sudo systemctl disable systemd-resolved.service sudo systemctl stop systemd-resolved.service
  4. Remove /etc/resolv.conf and create a new one:
    sudo rm /etc/resolv.conf sudo nano /etc/resolv.conf
  5. Enter into your empty .conf file:
    nameserver 127.0.0.1
  6. Press Ctrl+x to exit the editor. Enter y to save and then press Enter to overwrite your new resolv.conf file.
  7. Edit your NetworkManager.conf file
    sudo nano /etc/NetworkManager/NetworkManager.conf

    and add the following:

    dns=dnsmasq

    beneath the lines (navigate using arrow keys), [main] and plugins=ifupdown, keyfile exactly like this with the new line added.

    [main] plugins=ifupdown, keyfile dns=dnsmasq

    Press Ctrl+x to exit the editor. Enter y to save and then press Enter to overwrite the file.

  8. Back out of the terminal, and reboot the system and check your dnsleak test site for results.

VPNSecure Provides Secure VPN servers in over 45+ Countries

If you are a looking for a versatile easy to use VPN service, checkout Today