[TriLUG] Static Wins mapping
Jon Carnes
jonc at nc.rr.com
Thu Aug 8 07:30:15 EDT 2002
See the little used and often misunderstood "Wins Hook" parameter in
smb.conf:
===
wins hook (G)
When Samba is running as a WINS server this allows
you to call an external program for all changes to
the WINS database. The primary use for this option
is to allow the dynamic update of external name
resolution databases such as dynamic DNS.
The wins hook parameter specifies the name of a
script or executable that will be called as fol
lows:
wins_hook operation name nametype ttl IP_list
The first argument is the operation and is one of
"add", "delete", or "refresh". In most cases the
operation can be ignored as the rest of the parame
ters provide sufficient information. Note that
"refresh" may sometimes be called when the name has
not previously been added, in that case it should
be treated as an add.
The second argument is the netbios name. If the
name is not a legal name then the wins hook is not
called. Legal names contain only letters, digits,
hyphens, underscores and periods.
The third argument is the netbios name type as a 2
digit hexadecimal number.
The fourth argument is the TTL (time to live) for
the name in seconds.
The fifth and subsequent arguments are the IP
addresses currently registered for that name. If
this list is empty then the name should be deleted.
An example script that calls the BIND dynamic DNS
update program "nsupdate" is provided in the exam
ples directory of the Samba source code.
===
On Thursday 08 August 2002 06:11 am, Chris Knowles wrote:
> A question... is there a way to add a static mapping to the WINS server
> portion of samba? Adding an entry to lmhosts only works for the host on
> which you make that change.
>
> The windows WINS server has the ability to do this, and samba is such a
> drop in replacement in other ways, I'm surprised.
>
> CJK
>
>
> _______________________________________________
> TriLUG mailing list
> http://www.trilug.org/mailman/listinfo/trilug
> TriLUG Organizational FAQ:
> http://www.trilug.org/~lovelace/faq/TriLUG-faq.html
More information about the TriLUG
mailing list