现象:登陆centos时发现主机名显示为bogon,而不是常见的localhost
解决步骤:
1,编辑dns文件新增公共dns域名,如果 google 的 8888,命令 vim /etc/resolv.conf
# Generated by NetworkManager search localdomain nameserver 192.168.49.2 nameserver 8.8.8.8
2,重新连接就能正常显示localhost主机名了
现象:登陆centos时发现主机名显示为bogon,而不是常见的localhost
解决步骤:
1,编辑dns文件新增公共dns域名,如果 google 的 8888,命令 vim /etc/resolv.conf
# Generated by NetworkManager search localdomain nameserver 192.168.49.2 nameserver 8.8.8.8
2,重新连接就能正常显示localhost主机名了