Environment: ubuntuyuntop9.10 problem: we have a WINS server on the LAN, Windows clients can access the server through a brief Host Name (NetBIOS name), but my Ubuntu client is not, very depressed. Solution: 1. Tell the Ubuntu client to modify the WINS server address/etc/samba/smb. conf and add the following content to its [global]: winsserver = 10.35.0.10.
Environment: Ubuntu Desktop 9.10
Problem:
We have a WINS server on the LAN, and Windows clients can access the server through a brief Host Name (NetBIOS name), but my Ubuntu client is not, very depressed.
Solution:
1. Tell the WINS server address of the Ubuntu Client
Modify/etc/samba/smb. conf
Add the following content to its [global ]:
Wins server = 10.35.0.10
This tells the Ubuntu client that the IP address of the WINS server is 10.35.0.10.
2. Use WINS
Modify/etc/nsswitch. conf
Put
Hosts: files mdns4_minimal [NOTFOUND = return] dns mdns4
Change
Hosts: files wins mdns4_minimal [NOTFOUND = return] dns mdns4
Restart the winbind server.
Sudo service winbind restart
We can also use a brief host name.
Ping ns1802
The system will say: ping: unknown host ns1802
Now, it's okay.