1 <samba:parameter name="wins hook"
5 xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
7 <para>When Samba is running as a WINS server this
8 allows you to call an external program for all changes to the
9 WINS database. The primary use for this option is to allow the
10 dynamic update of external name resolution databases such as
13 <para>The wins hook parameter specifies the name of a script
14 or executable that will be called as follows:</para>
16 <para><command moreinfo="none">wins_hook operation name nametype ttl IP_list</command></para>
20 <para>The first argument is the operation and is
21 one of "add", "delete", or
22 "refresh". In most cases the operation
23 can be ignored as the rest of the parameters
24 provide sufficient information. Note that
25 "refresh" may sometimes be called when
26 the name has not previously been added, in that
27 case it should be treated as an add.</para>
31 <para>The second argument is the NetBIOS name. If the
32 name is not a legal name then the wins hook is not called.
33 Legal names contain only letters, digits, hyphens, underscores
38 <para>The third argument is the NetBIOS name
39 type as a 2 digit hexadecimal number. </para>
43 <para>The fourth argument is the TTL (time to live)
44 for the name in seconds.</para>
48 <para>The fifth and subsequent arguments are the IP
49 addresses currently registered for that name. If this list is
50 empty then the name should be deleted.</para>
54 <para>An example script that calls the BIND dynamic DNS update
55 program <command moreinfo="none">nsupdate</command> is provided in the examples
56 directory of the Samba source code. </para>