How do I change DNS settings in Linux?

Alvin Le

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

Tìm kiếm

Back
Top