nerdexam
GIAC

GSLC · Question #360

Which of the following is a computer file used in an operating system to map hostnames to IP addresses?

The correct answer is D. HOSTS file. The HOSTS file is a local operating system text file that maps hostnames to IP addresses, providing static name resolution before DNS is queried.

Security Architecture & Engineering

Question

Which of the following is a computer file used in an operating system to map hostnames to IP addresses?

Options

  • ALMHOSTS file
  • BNSCD.CONF file
  • CTMPFS file
  • DHOSTS file

How the community answered

(41 responses)
  • B
    2% (1)
  • C
    7% (3)
  • D
    90% (37)

Why each option

The HOSTS file is a local operating system text file that maps hostnames to IP addresses, providing static name resolution before DNS is queried.

ALMHOSTS file

The LMHOSTS file maps NetBIOS computer names to IP addresses for legacy Windows networking and is distinct from the general-purpose hostname resolution that the HOSTS file provides.

BNSCD.CONF file

NSCD.CONF is the configuration file for the Name Service Cache Daemon, which caches name service lookup results for performance, but does not itself store or define hostname-to-IP mappings.

CTMPFS file

TMPFS is a volatile, RAM-backed temporary filesystem used by operating systems for ephemeral storage and has no relationship to hostname or IP address resolution.

DHOSTS fileCorrect

The HOSTS file (located at /etc/hosts on Unix-like systems and C:\Windows\System32\drivers\etc\hosts on Windows) is a plain-text file the OS reads before querying DNS to resolve a hostname to an IP address. It provides a local, static hostname-to-IP mapping that takes precedence over DNS in most default OS configurations, making it the direct answer to this question.

Concept tested: Local hostname to IP address resolution via HOSTS file

Source: https://learn.microsoft.com/en-us/troubleshoot/windows-server/networking/configure-hosts-file

Topics

#HOSTS file#hostname resolution#IP mapping#DNS fundamentals

Community Discussion

No community discussion yet for this question.

Full GSLC Practice