由 coolend 在 02-27-2004 16:44 发表:
**如何让smbclinet -L
1<hostname>识别hostname是网内/外主机 **
2
3
4
5
6
7如果局域网内有台主机名和Internet上一台主机名同名,如同为candy
8
9访问candy (系统为Windows) 的共享资源时,如下:
10
11
12
13# smbclient -L candy
14
15Error connecting to 65.61.129.128 (拒绝连接)
16
17Connection to candy failed
18
19
20
21# nmblookup candy
22
23querying candy on 192.168.0.255
24
25192.168.0.144 candy<00>
26
27
28
29# echo -e "192.168.0.144 \t candy \t candy" >> /etc/hosts
30
31还是不行
32
33
34
35Could you help me??Thank you very much!
36
37__________________
38
39QQ: 82433808
40
41M$N: [email protected]
42
43[ success ] && no excuse
44
45
46
47
48* * *
49
50
51_由 Glue 在 02-27-2004 20:37 发表:_
52
53
54
55****
56
57
58
59
60
61看一下/etc/nsswitch.conf
62
63hosts: files dns
64
65应该就可以了。
66
67__________________
68
69-_-
70
71
72
73
74* * *
75
76
77_由 coolend 在 02-28-2004 00:32 发表:_
78
79
80
81****
82
83
84
85
86
87还是不行啊
88
89# cat /etc/nsswitch.conf |grep ^hosts
90
91hosts: dns files
92
93
94
95# cat /etc/host.conf
96
97order hosts,bind
98
99__________________
100
101QQ: 82433808
102
103M$N: [email protected]
104
105[ success ]</hostname>