[KLUG Members] slow telnet
Adam Tauno Williams
members@kalamazoolinux.org
Tue, 26 Jun 2001 10:37:57 -0400 (EDT)
>>>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.
Systems and Network Administrator
Morrison Industries
1825 Monroe Ave NW.
Grand Rapids, MI. 49505