Changing your DNS server in Ubuntu can significantly improve your browsing speed and privacy. While the GUI is easy, the terminal provides more permanent control.
Editing systemd-resolved
- Open the terminal and run
sudo nano /etc/systemd/resolved.conf. - Uncomment the DNS= line and add your preferred DNS (e.g.,
1.1.1.1). - Save and restart the service using
sudo systemctl restart systemd-resolved.