My hostname is localhost
, reported by hostname
command, and terminal prompt root@localhost:~#
.
How can i change it to mismis.com
with mismis
alias? and what is the proper configuration.
I confused after reading some articles on web.
My /etc/hosts:
127.0.0.1 localhost
127.0.1.1 srv345.myweb.com srv345
178.162.231.61 janstone.mismis.com janstone
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
Best Answer
Try running the following command in a terminal.
/etc/hosts: