LFCS · Question #582
Which smb.conf configuration keyword determines the hostname resolution order?
The correct answer is B. name resolve order. The name resolve order keyword in smb.conf specifies the sequence Samba uses to resolve hostnames to IP addresses.
Question
Options
- Ause ads
- Bname resolve order
- Cuse nsswitch.conf
- Duse resolv.conf
How the community answered
(59 responses)- A2% (1)
- B86% (51)
- C8% (5)
- D3% (2)
Why each option
The `name resolve order` keyword in `smb.conf` specifies the sequence Samba uses to resolve hostnames to IP addresses.
`use ads` is a parameter related to Active Directory integration, not hostname resolution order.
The `name resolve order` parameter explicitly defines the order in which Samba attempts to resolve NetBIOS names and hostnames, such as using `lmhosts`, `host`, `wins`, and `bcast`. This allows administrators to customize the name resolution priority for Samba services.
`nsswitch.conf` is a system-wide configuration file for name service lookups on Unix-like systems, but Samba uses its own `name resolve order` for NetBIOS/hostname resolution within its `smb.conf`.
`resolv.conf` is a system-wide configuration file for DNS resolution, not a specific Samba keyword for defining its internal hostname resolution order.
Concept tested: Samba name resolution order configuration
Source: https://www.samba.org/samba/docs/current/manpages/smb.conf.5.html
Topics
Community Discussion
No community discussion yet for this question.