1LMHOSTS(5)               File Formats and Conventions               LMHOSTS(5)
2
3
4

NAME

6       lmhosts - The Samba NetBIOS hosts file
7

SYNOPSIS

9       lmhosts is the samba(7) NetBIOS name to IP address mapping file.
10

DESCRIPTION

12       This file is part of the samba(7) suite.
13
14       lmhosts is the Samba NetBIOS name to IP address mapping file. It is
15       very similar to the /etc/hosts file format, except that the hostname
16       component must correspond to the NetBIOS naming format.
17

FILE FORMAT

19       It is an ASCII file containing one line for NetBIOS name. The two
20       fields on each line are separated from each other by white space. Any
21       entry beginning with '#' is ignored. Each line in the lmhosts file
22       contains the following information:
23
24              •   IP Address - in dotted decimal format.
25
26              •   NetBIOS Name - This name format is a maximum fifteen
27                  character host name, with an optional trailing '#' character
28                  followed by the NetBIOS name type as two hexadecimal digits.
29
30                  If the trailing '#' is omitted then the given IP address
31                  will be returned for all names that match the given name,
32                  whatever the NetBIOS name type in the lookup.
33
34
35       An example follows:
36
37           #
38           # Sample Samba lmhosts file.
39           #
40           192.9.200.1    TESTPC
41           192.9.200.20   NTSERVER#20
42           192.9.200.21   SAMBASERVER
43
44       Contains three IP to NetBIOS name mappings. The first and third will be
45       returned for any queries for the names "TESTPC" and "SAMBASERVER"
46       respectively, whatever the type component of the NetBIOS name
47       requested.
48
49       The second mapping will be returned only when the "0x20" name type for
50       a name "NTSERVER" is queried. Any other name type will not be resolved.
51
52       The default location of the lmhosts file is in the same directory as
53       the smb.conf(5) file.
54

FILES

56       lmhosts is loaded from the configuration directory. This is usually
57       /etc/samba or /usr/local/samba/lib.
58

VERSION

60       This man page is part of version 4.18.9 of the Samba suite.
61

SEE ALSO

63       smbclient(1), smb.conf(5), and smbpasswd(8)
64

AUTHOR

66       The original Samba software and related utilities were created by
67       Andrew Tridgell. Samba is now developed by the Samba Team as an Open
68       Source project similar to the way the Linux kernel is developed.
69
70
71
72Samba 4.18.9                      11/30/2023                        LMHOSTS(5)
Impressum