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


pangheming 于 2009-08-02 21:10:47发表:
支持1楼
wangyoubang 于 2009-08-02 08:41:24发表:
最简单的在/etc/hosts把IP 和你要的计算机名映射一下就行了