Friday, 4 March 2016

Set you linux host name and domain

Recently I have created a new VM linux server on CloudSigma. The Server runs Fedora 22. In order to setup the hostname and network domain I have changed the following files:

[root@illumine ~]# cat  /etc/host

[root@illumine ~]# cat /etc/hostname

[root@illumine ~]# cat /etc/hosts   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

178.XXX.XXX.132 securepdf

Test it using ping:

[root@securepdf ~]# ping securepdf
PING (178.XXX.XXX.132) 56(84) bytes of data.
64 bytes from (178.XXX.XXX.132): icmp_seq=1 ttl=64 time=0.036 ms

No comments: