[KLUG Members] slow telnet

Dirk H Bartley members@kalamazoolinux.org
Tue, 26 Jun 2001 11:15:33 -0400


Adam Tauno Williams wrote:
> 
> >>>what would be causing telnet to take close to three minuets before
> >>>showing a login prompt?  once it gives the prompt though there is no
> >>>lag in the commands and displays.
> >>DNS timeouts.
> >>You need to make sure that reverse lookups are working.  Do an "nslookup
> >>{PC's IP address}" on the Linux box and see what happens.  When you connect
> >>the Linux box wants to record your host name in a log file.
> >I'd suggest putting an entry in /etc/hosts on the linux box of the host
> >you want to log in from.  Then when that works worry about seting up DNS with
> >reverse lookups.  hosts is great for a single machine.  DNS for the many.
> >What I really want to know is how to setup dns to work with the wins
> >hook in samba.  Does this parameter then execute a command to add an entry into
> >dns everytime an entry is added through wins.
> 
> Or when an entry is removed, yes.  The external command is usually a script that
> takes the parameters (as defined in "man smb") feeds the appropriate syntax into
> nsupdate (the Bind async-update client).  The Samba package includes and example
> script dns_update that does exactly this, and filters out the spurious WINS crap
> that doesn't pertain to DNS.  It however only manages forward lookups,  I have
> an adam-hacked-special that manages reverse updates too so long as all hosts
> live in the same SOA.
> 
> >Does anyone have an example of how to set this up?
> 
> Yes.  A DHCP network without WINS HOOK is madness I say, madness!!!
> 
> >This means that the machine running dns must run nmbd, correct?
> 
> No.  The machine must have the privilages requires to perform and async-update
> to the Bind version 8 or greater DNS server.
> 
> 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.

Yes, I read this before when I wanted to try to implement it months ago but
never got to it.  Now I want to succeed. I guess what I need now is the example
script from the source, which I did download and put somewhere.   Now lets see,
where is it.  (ya wanna share your script that includes reverse lookups?).  Does
the example from the source include reverse updates as well.

So when all is working the only entries that will need to be manually edited
into the named files will be those hosts which are not running nmbd.  Correct?

One more point of confusion.  The man page shows

wins_hook operation name nametype ttl IP_list

as the entry in smb.conf.  So what is the parameter that is the path of the name
of the script that I assume will call nsupdate.

Dirk