linux - How to add new local host? -
how can set new local host new hostname?
[main@evghost ~]$ host evghost host evghost not found: 3(nxdomain) [main@evghost ~]$ host localhost localhost has address 127.0.0.1 [main@evghost ~]$ cat /etc/hosts # # /etc/hosts: static lookup table host names # #<ip-address> <hostname.domain.org> <hostname> 127.0.0.1 localhost.localdomain localhost ::1 localhost.localdomain localhost # end of file
i want have new localhost name evghost
maybe:
127.0.0.1 evghost evghost
you should specify question little more precise.
then try
localhost evghost evghost // localhost evghost.localdomain evghost // localhost evghost // 127.0.0.1 evghost
Comments
Post a Comment