Understanding hosts and lmhosts files

The hosts and lmhosts files are used for name resolution and are stored in the C:\Windows\system32\drivers\etc directory, as shown in Figure 5.12. The host files contain the mapping of IP addresses to hostnames and are used for DNS name resolution. Unlike hosts, the LAN manager hosts (lmhosts) file contain the mapping of IP addresses to computer names and is used for NetBIOS name resolution. In both files, entries are inserted manually, and each entry should be kept on an individual line:

Figure 5.12: The hosts and lmhosts files in Windows Server 2019

The following table presents the examples of hosts ...

Get Windows Server 2019 Administration Fundamentals - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.