How to edit /etc/resolv.conf

I’m trying to edit using VI editor but It is not allowing due to permission issue.
I want to change the nameserver to

Welcome @rcloudmmxv

you can use sudo to gain permission to edit the file:

sudo vi /etc/resolv.conf

Provide the password set for the user (password: caleston123 or the one that labs provided)

If you are in the networking section of the course, please go back to Security and File permissions to refresh concepts on how to gain administrative access or how to switch users (sudo and su)