I made a mistake and accidentally deleted hosts file from my system and cannot figure out how to get back my hosts (/etc/) file, when I do
sudo service apache2 restart
It's showing:
sudo: unable to resolve host SystemName.
I am using Ubuntu 14.04 LTS. I tried editing the hosts file sudo vi hosts
and put:
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
But to no avail.