Docbook XML conversion: devdoc
[Samba/gebeck_regimport.git] / docs / docbook / devdoc / wins.xml
blob53410316c567d8fa295a3f751a9bbf3b7db2d0b2
1 <chapter id="wins">
2 <chapterinfo>
3         <author>
4                 <firstname>Gerald</firstname><surname>Carter</surname>
5         </author>
6         <pubdate>October 2002</pubdate>
7 </chapterinfo>
10 <title>Samba WINS Internals</title>
13 <sect1>
14 <title>WINS Failover</title>
17 <para>
18 The current Samba codebase possesses the capability to use groups of WINS
19 servers that share a common namespace for NetBIOS name registration and 
20 resolution.  The formal parameter syntax is
21 </para>
23 <para><programlisting>
24         WINS_SERVER_PARAM       = SERVER [ SEPARATOR SERVER_LIST ]
25         WINS_SERVER_PARAM       = &quot;wins server&quot;
26         SERVER                  = ADDR[:TAG]
27         ADDR                    = ip_addr | fqdn
28         TAG                     = string
29         SEPARATOR               = comma | \s+
30         SERVER_LIST             = SERVER [ SEPARATOR SERVER_LIST ]
31 </programlisting></para>
33 <para>
34 A simple example of a valid wins server setting is
35 </para>
37 <para><programlisting>
38 [global]
39         wins server = 192.168.1.2 192.168.1.3
40 </programlisting></para>
42 <para>
43 In the event that no TAG is defined in for a SERVER in the list, smbd assigns a default
44 TAG of &quot;*&quot;.  A TAG is used to group servers of a shared NetBIOS namespace together.  Upon
45 startup, nmbd will attempt to register the netbios name value with one server in each
46 tagged group.
47 </para>
49 <para>
50 An example using tags to group WINS servers together is show here.  Note that the use of
51 interface names in the tags is only by convention and is not a technical requirement.
52 </para>
55 <para><programlisting>
56 [global]
57         wins server = 192.168.1.2:eth0 192.168.1.3:eth0 192.168.2.2:eth1
58 </programlisting></para>
60 <para>
61 Using this configuration, nmbd would attempt to register the server's NetBIOS name 
62 with one WINS server in each group.  Because the &quot;eth0&quot; group has two servers, the 
63 second server would only be used when a registration (or resolution) request to 
64 the first server in that group timed out.
65 </para>
67 <para>
68 NetBIOS name resolution follows a similar pattern as name registration.  When resolving 
69 a NetBIOS name via WINS, smbd and other Samba programs will attempt to query a single WINS 
70 server in a tagged group until either a positive response is obtained at least once or 
71 until a server from every tagged group has responded negatively to the name query request.
72 If a timeout occurs when querying a specific WINS server, that server is marked as down to 
73 prevent further timeouts and the next server in the WINS group is contacted.  Once marked as 
74 dead, Samba will not attempt to contact that server for name registration/resolution queries 
75 for a period of 10 minutes.
76 </para>
78 </sect1>
79 </chapter>