2004-04-07 14:15:11 +04:00
<samba:parameter name= "name resolve order"
context="G"
2015-07-23 18:19:19 +03:00
type="cmdlist"
2017-04-11 13:26:45 +03:00
handler="handle_name_resolve_order"
2005-03-13 01:41:20 +03:00
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
2004-04-07 14:15:11 +04:00
<description >
<para > This option is used by the programs in the Samba
suite to determine what naming services to use and in what order
to resolve host names to IP addresses. Its main purpose to is to
control how netbios name resolution is performed. The option takes a space
separated string of name resolution options.</para>
<para > The options are: " lmhosts" , " host" ,
" wins" and " bcast" . They cause names to be
resolved as follows:</para>
<itemizedlist >
<listitem >
2005-11-02 01:33:40 +03:00
<para >
<constant > lmhosts</constant> : Lookup an IP address in the Samba lmhosts file. If the line in lmhosts has
no name type attached to the NetBIOS name (see the manpage for lmhosts for details) then
any name type matches for lookup.
</para>
2004-04-07 14:15:11 +04:00
</listitem>
<listitem >
2005-11-02 01:33:40 +03:00
<para >
<constant > host</constant> : Do a standard host name to IP address resolution, using the system
<filename moreinfo= "none" > /etc/hosts </filename> , NIS, or DNS lookups. This method of name resolution is
operating system depended for instance on IRIX or Solaris this may be controlled by the <filename
moreinfo="none">/etc/nsswitch.conf</filename> file. Note that this method is used only if the NetBIOS name
type being queried is the 0x20 (server) name type or 0x1c (domain controllers). The latter case is only
useful for active directory domains and results in a DNS query for the SRV RR entry matching
_ldap._tcp.domain.
</para>
2004-04-07 14:15:11 +04:00
</listitem>
<listitem >
<para > <constant > wins</constant> : Query a name with
2005-07-07 01:23:58 +04:00
the IP address listed in the <smbconfoption name= "WINSSERVER" > <parameter moreinfo= "none" >
wins server</parameter> </smbconfoption> parameter. If no WINS server has
2004-04-07 14:15:11 +04:00
been specified this method will be ignored.</para>
</listitem>
<listitem >
<para > <constant > bcast</constant> : Do a broadcast on
2005-07-07 01:23:58 +04:00
each of the known local interfaces listed in the <smbconfoption name= "interfaces" />
2004-04-07 14:15:11 +04:00
parameter. This is the least reliable of the name resolution
methods as it depends on the target host being on a locally
connected subnet.</para>
</listitem>
</itemizedlist>
<para > The example below will cause the local lmhosts file to be examined
first, followed by a broadcast attempt, followed by a normal
system hostname lookup.</para>
<para > When Samba is functioning in ADS security mode (<command moreinfo= "none" > security = ads</command> )
it is advised to use following settings for <parameter moreinfo= "none" > name resolve order</parameter> :</para>
<para > <command moreinfo= "none" > name resolve order = wins bcast</command> </para>
<para > DC lookups will still be done via DNS, but fallbacks to netbios names will
2019-08-29 23:44:54 +03:00
not inundate your DNS servers with needless queries for DOMAIN< 0x1c> lookups.</para>
2004-04-07 14:15:11 +04:00
</description>
param: change a number of parameters from P_LIST to P_CMDLIST
These parameters are being changed to use their original syntax to match source3.
netbios aliases, interfaces, auth methods, invalid users, valid users,
admin users, read list, write list, hosts allow, hosts deny, preload
modules, smb ports, name resolve order, svcctl list, cluster addresses,
init logon delayed hosts, wins server, eventlog list, usershare prefix
allow list, usershare prefix deny list, vfs objects, winbind nss info
The documentation has also been changed to be consistent with the
change.
Change-Id: I536481098a508e0366c910b180f2db6a6f0634a9
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Nadezhda Ivanova <nivanova@samba.org>
2014-05-06 06:56:46 +04:00
<value type= "default" > lmhosts wins host bcast</value>
<value type= "example" > lmhosts bcast host</value>
2004-04-07 14:15:11 +04:00
</samba:parameter>