I find a solution for this, in finder, if the hosts file has a lock on it, use this command to unlock it:
sudo chflags nouchg,noschg /etc/hosts
then it will be editable by root, so you can use sudo nano /etc/hosts
.
BTY, you can find hosts file in finder by this command: open /etc
.