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