How To Change Dns Server On Linux
If you’re having trouble accessing certain websites or services, it might be because your DNS servers are not configured correctly. To change your DNS server on Linux, follow these steps: Open a terminal window and type the following command: sudo nano /etc/resolv.conf Add the following line to the file: nameserver 8.8.8.8 Save the file and close it by pressing Ctrl+X then Y then Enter. Now that your DNS server has been changed, you’ll need to restart your computer’s network service for the changes to take effect: sudo service network restart ....