1 <samba:parameter name="name resolve order"
4 xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
6 <para>This option is used by the programs in the Samba
7 suite to determine what naming services to use and in what order
8 to resolve host names to IP addresses. Its main purpose to is to
9 control how netbios name resolution is performed. The option takes a space
10 separated string of name resolution options.</para>
12 <para>The options are: "lmhosts", "host",
13 "wins" and "bcast". They cause names to be
14 resolved as follows:</para>
19 <constant>lmhosts</constant> : Lookup an IP address in the Samba lmhosts file. If the line in lmhosts has
20 no name type attached to the NetBIOS name (see the manpage for lmhosts for details) then
21 any name type matches for lookup.
27 <constant>host</constant> : Do a standard host name to IP address resolution, using the system
28 <filename moreinfo="none">/etc/hosts </filename>, NIS, or DNS lookups. This method of name resolution is
29 operating system depended for instance on IRIX or Solaris this may be controlled by the <filename
30 moreinfo="none">/etc/nsswitch.conf</filename> file. Note that this method is used only if the NetBIOS name
31 type being queried is the 0x20 (server) name type or 0x1c (domain controllers). The latter case is only
32 useful for active directory domains and results in a DNS query for the SRV RR entry matching
38 <para><constant>wins</constant> : Query a name with
39 the IP address listed in the <smbconfoption name="WINSSERVER"><parameter moreinfo="none">
40 wins server</parameter></smbconfoption> parameter. If no WINS server has
41 been specified this method will be ignored.</para>
45 <para><constant>bcast</constant> : Do a broadcast on
46 each of the known local interfaces listed in the <smbconfoption name="interfaces"/>
47 parameter. This is the least reliable of the name resolution
48 methods as it depends on the target host being on a locally
49 connected subnet.</para>
53 <para>The example below will cause the local lmhosts file to be examined
54 first, followed by a broadcast attempt, followed by a normal
55 system hostname lookup.</para>
57 <para>When Samba is functioning in ADS security mode (<command moreinfo="none">security = ads</command>)
58 it is advised to use following settings for <parameter moreinfo="none">name resolve order</parameter>:</para>
60 <para><command moreinfo="none">name resolve order = wins bcast</command></para>
62 <para>DC lookups will still be done via DNS, but fallbacks to netbios names will
63 not inundate your DNS servers with needless querys for DOMAIN<0x1c> lookups.</para>
67 <value type="default">lmhosts wins host bcast</value>
68 <value type="example">lmhosts bcast host</value>