LFCS · Question #328
What is the most suitable procedure for accessing a Windows machine by its NetBIOS name from a Linux system?
The correct answer is D. Install libnss_wins.so on the Linux system and configure the name service switch subsystem. To resolve NetBIOS names on a Linux system, the most suitable method is to install libnss_wins.so and configure the Name Service Switch (NSS) subsystem.
Question
Options
- ASetup a dynamic DNS server to accept updated records from the Windows machine.
- BRun nmbd and winbindd on the Linux system and enable the WINS proxy.
- CImport the list of the NetBIOS names into a NIS server and enable a NIS client on the Linux system.
- DInstall libnss_wins.so on the Linux system and configure the name service switch subsystem.
How the community answered
(56 responses)- A2% (1)
- B5% (3)
- C9% (5)
- D84% (47)
Why each option
To resolve NetBIOS names on a Linux system, the most suitable method is to install `libnss_wins.so` and configure the Name Service Switch (NSS) subsystem.
Dynamic DNS is primarily for resolving hostnames (DNS names) to IP addresses, not for directly accessing machines by their NetBIOS names, which is a different naming system.
Running `nmbd` and `winbindd` with WINS proxy enabled on the Linux system allows it to *forward* NetBIOS name queries for *other* machines, but it doesn't directly configure the local system's name resolution to use NetBIOS names effectively for itself.
NIS (Network Information Service) is an older Unix directory service and is not designed to integrate with or resolve NetBIOS names from a Windows environment.
Installing the `libnss_wins.so` library (part of Samba client tools) and configuring `/etc/nsswitch.conf` to include `wins` in the `hosts` entry (`hosts: files dns wins`) allows the Linux system to use WINS or NetBIOS broadcasts for name resolution, enabling access to Windows machines by their NetBIOS names.
Concept tested: Linux NetBIOS name resolution configuration
Source: https://www.samba.org/samba/docs/current/manpages/nss-winbind.5.html
Topics
Community Discussion
No community discussion yet for this question.