Report this

What is the reason for this report?

How i configure my /etc/host on Ubuntu?

Posted on October 5, 2014

Hi, i created hostname: ‘mysite.com’, but, how i configure the etc/host?

My actual hosts is this

127.0.0.1 localhost 127.0.1.1 mysite.com mysite xxx.xxx.xxx.xxx mysite.com mysite

Is correct?

But when i execute

sudo service hostname restart

This error appears:

stop: Unknow instance 
hostname stop/waiting

The command hostname return mysite.com and the hostname -f return mysite.com

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.