Error -bash: /etc/resolve.conf: Permission denied

image

getting this error while adding DNS entry in a file.

DNS Lab Q no.9

Hi @kirancool please try from root (#) user.

Thank you,

Hi @kirancool

Not sure quite what you are trying to do with cat >> /etc/resolv.conf
If you answered Q6 then you should already have edited resolv.conf

You need to edit the file as root

sudo vi /etc/resolv.conf

and add the required entry.