How to change DNS server

Please help in solving this question
Tried sudo nano /etc/resolv.conf
Also cat >> /etc/resolv.conf

Not working…

Check the steps in the attached gif
dns