DNS Fix Linux
Last updated by Shayne M on February 12, 2019 12:31
- Shut off The VPN connection
- Install dnsmasq
<code>sudo apt update sudo apt install dnsmasq
- Disable resolved
<code>sudo systemctl disable systemd-resolved.service sudo systemctl stop systemd-resolved.service
- Remove /
etc/resolv.confand create a new one:
<code>sudo rm /etc/resolv.conf sudo nano /etc/resolv.conf
- Enter into your empty
- Press Ctrl+x to exit the editor. Enter y to save and then press Enter to overwrite your new
- Edit your NetworkManager.conf file
<code>sudo nano /etc/NetworkManager/NetworkManager.conf
and add the following:
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.
- 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