/sc_assets/244/logo.png

DNS Fix Linux

Last updated by Shayne M on February 12, 2019 12:31

  1. Shut off The VPN connection
  2. Install dnsmasq
    <code>sudo apt update sudo apt install dnsmasq   
  3. Disable resolved
    <code>sudo systemctl disable systemd-resolved.service sudo systemctl stop systemd-resolved.service  
  4. Remove /etc/resolv.conf and create a new one:
    <code>sudo rm /etc/resolv.conf sudo nano /etc/resolv.conf   
  5. Enter into your empty .conf file:
    <code>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
    <code>sudo nano /etc/NetworkManager/NetworkManager.conf  

    and add the following:

    <code>dns=dnsmasq  

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

    <code>[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