nerdexam
Linux_Foundation

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.

Submitted by krish.m· Apr 18, 2026Networking

Question

Which smb.conf configuration keyword determines the hostname resolution order?

Options

  • Ause ads
  • Bname resolve order
  • Cuse nsswitch.conf
  • Duse resolv.conf

How the community answered

(59 responses)
  • A
    2% (1)
  • B
    86% (51)
  • C
    8% (5)
  • D
    3% (2)

Why each option

The `name resolve order` keyword in `smb.conf` specifies the sequence Samba uses to resolve hostnames to IP addresses.

Ause ads

`use ads` is a parameter related to Active Directory integration, not hostname resolution order.

Bname resolve orderCorrect

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.

Cuse nsswitch.conf

`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`.

Duse resolv.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

#Samba#smb.conf#Hostname Resolution#Networking

Community Discussion

No community discussion yet for this question.

Full LFCS Practice