红联Linux门户
Linux帮助

ping 计算机名,如何设置?

发布时间:2009-06-11 11:35:36来源:红联作者:johnson.pan
cd /etc/
vim nsswitch.conf
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd: compat
group: compat
shadow: compat

hosts: wins files mdns4_minimal [NOTFOUND=return] dns mdns4networks: files

protocols: db files
services: db files
ethers: db files
rpc: db files

netgroup: nis
请在此行 files单词前添加wins



有不明白请给我email:pan_021@126.com
文章评论

共有 2 条评论

  1. pangheming 于 2009-08-02 21:10:47发表:

    支持1楼

  2. wangyoubang 于 2009-08-02 08:41:24发表:

    最简单的在/etc/hosts把IP 和你要的计算机名映射一下就行了