DNS Fix Linux
Last updated by Shayne M on July 22, 2021 22: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
- Remove
/etc/resolv.conf
and create a new one:sudo rm /etc/resolv.conf sudo nano /etc/resolv.conf
- Enter into your empty
.conf
file:nameserver 127.0.0.1
- Press Ctrl+x to exit the editor. Enter y to save and then press Enter to overwrite your new
resolv.conf
file. - 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.
- 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