Labs - DNS server

Question 5
On host01 point to IP address locally.

cat >> /etc/hosts
bash: /etc/hosts: Permission denied
thor@host01 /$ sudo cat >> /etc/hosts
bash: /etc/hosts: Permission denied

Its happening in all the topics in DNS labs here it says permission denied when i try to edit this file. in question 6 and question 9.

what am i doing wrong?

You have to add sudo to the command as below :

Sudo (sometimes considered as short for S uper- u ser do ) is a program designed to let system administrators allow some users to execute some commands as root (or another user). The basic philosophy is to give as few privileges as possible but still allow people to get their work done.