DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH
 

lmhosts(SFF)


lmhosts -- NetBIOS hostname file

Format

IP_address NetBIOS_name # comment
IP_address NetBIOS_name #DOM:domain_name # comment

Description

The /etc/lmhosts file contains mappings of NetBIOS host names to IP addresses for use in routed IP networks (that is, networks where NetBIOS host systems are located on other IP networks accessible via routers). This file format is compatible with the Microsoft® LAN Manager 2.x TCP/IP LMHOSTS file.

Normally, the dlnbhosts(ADMN) program loads the contents of this file into the TCP/IP NetBIOS name cache as part of the TCP/IP NetBIOS startup procedure.

The IP_address field must be given in dotted decimal notation.

The NetBIOS_name field can contain up to 16 characters that identify the remote client or server system and must match the NetBIOS name of the remote system. For special applications, represent non-printable characters as hexadecimal values using the notation ``\0xnn'', and enclose the entire field in double quotes. Pad the name with blanks to position the special character correctly.

The ``#'' character normally delimits the start of a comment except when it is used to start an expression of the form ``#DOM:domain_name''. This is used to identify a server system that is part of a domain or NetBIOS group.

Examples

This is an example /etc/lmhosts file:
134.148.208.10  sserv  #DOM:london      # London - sales server
134.148.208.11  accnts #DOM:london      # London - accounts server
151.126.15.15   client1                 # Remote client
151.126.15.17   client2                 # Remote client
134.148.205.67  sales  #DOM:chicago     # Chicago - sales server
134.148.205.68  mktg   #DOM:chicago     # Chicago - marketing server
134.148.206.99  "vtpserv        \0x73"  # Special application

Files


/etc/lmhosts
NetBIOS remote hosts file

See also

dlnbhosts(ADMN), nbd(ADMN), netbios(ADMN), netbios(ADMP)
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003