Friday, April 19, 2024
 Popular · Latest · Hot · Upcoming
9
rated 0 times [  9] [ 0]  / answers: 1 / hits: 12120  / 3 Years ago, sun, june 27, 2021, 12:20:46

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

More From » hostname

 Answers
0

Try running the following command in a terminal.



sudo sysctl kernel.hostname=mismis.com


/etc/hosts:



127.0.0.1       localhost
127.0.1.1 mismis.com mismis 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

[#33737] Monday, June 28, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
disdry

Total Points: 133
Total Questions: 128
Total Answers: 109

Location: Greenland
Member since Fri, Jul 31, 2020
4 Years ago
disdry questions
Tue, Apr 11, 23, 11:37, 1 Year ago
Thu, Oct 13, 22, 19:09, 2 Years ago
Fri, Oct 28, 22, 15:06, 2 Years ago
Sat, Feb 25, 23, 11:33, 1 Year ago
;