DNS Fix Linux
Last updated by Shayne M on July 23, 2021 12:10
- Shut off The VPN connection
- Install dnsmasq
sudo apt update sudo apt install dnsmasq
- Disable resolved
sudo systemctl disable systemd-resolved.service sudo systemctl stop systemd-resolved.service
/etc/resolv.confand create a new one:
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
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.
[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