DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

lmhosts(4tcp)


lmhosts -- NetBIOS hostname file

Synopsis

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 nbtstat -R 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.

Files


/etc/lmhosts
NetBIOS remote hosts file

References

in.nbd(1Mtcp), nbtstat(1Mtcp), netbios(1Mtcp), netbios(7tcp)

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

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004