How to Update /etc/hosts

How to Update /etc/hosts

Edit your /etc/hosts file to something similar to the following example, replacing “alphabet” with your chosen hostname, “example.com” with your system’s domain name, and “66.66.66.66″ with your pubilc IP address.

root@zero:/# nano /etc/hosts

File: /etc/hosts

127.0.0.1        localhost.localdomain    localhost 
66.66.66.66      alphabet.example.com     alphabet

You may also need to Set your Hostname.

VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>