有没有原版的HOSTS?
Tofloor
poster avatar
观 潮
deepin
2017-11-04 00:06
Author
r如题,有没有深度原版的hosts文件,我的在网上下载出问题了,想恢复到原来的hosts文件
Reply Favorite View the author
All Replies
avatar
jingle
deepin
2017-11-04 00:22
#1
  1. deepin@deepin:~$ cat /etc/hosts
  2. 127.0.0.1        localhost
  3. 127.0.1.1   deepin

  4. # The following lines are desirable for IPv6 capable hosts
  5. ::1     ip6-localhost ip6-loopback
  6. fe00::0 ip6-localnet
  7. ff00::0 ip6-mcastprefix
  8. ff02::1 ip6-allnodes
  9. ff02::2 ip6-allrouters
  10. deepin@deepin:~$
Copy the Code

Reply View the author
avatar
woodelf
deepin
2017-11-04 00:25
#2
127.0.0.1        localhost
127.0.1.1   ${DI_HOSTNAME}
# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

其中${DI_HOSTNAME}改为你自己的/etc/hostname里面的内容。hosts的内容在安装器的03-configure_users.job里面有。
Reply View the author
avatar
HarryZhao
deepin
2017-11-04 00:34
#3
第二行那个就是自己当初设置的计算机名
Reply View the author
avatar
观 潮
deepin
2017-11-04 01:52
#4
Reply View the author
avatar
观 潮
deepin
2017-11-04 01:52
#5
https://bbs.deepin.org/post/147652
第二行那个就是自己当初设置的计算机名

非常感谢你的回答
Reply View the author