How do I change DNS settings in Linux?
Answer
Change your DNS servers on Linux
Answer
Change your DNS servers on Linux
- Open the terminal by pressing Ctrl + T.
- Enter the following command to become the root user: su.
- Once you’ve entered your root password, run these commands: rm -r /etc/resolv.conf. …
- When the text editor opens, type in the following lines: nameserver 103.86.96.100. …
- Close and save the file.