Where are DNS servers set in Linux?

Huyền Thu

New member
Where are DNS servers set in Linux?
Answer
Change your DNS servers on Linux
  1. su. Once you’ve entered your root password, run these commands:
  2. rm -r /etc/resolv.conf. nano /etc/resolv.conf. When the text editor opens, type in the following lines:
  3. nameserver 103.86.96.100. nameserver 103.86.99.100. Close and save the file. …
  4. chattr +i /etc/resolv.conf. reboot now. That’s it!
 

Tìm kiếm

Back
Top