Re: Telnet Problem



"Mark Hobley" wrote
Joe Hesse wrote:

The problem is when I try to connect to the telnet server from one or more
client computers on the same local network. Here is what happens.

$ telnet 192.168.0.100
Trying 192.168.0.100...
Connected to 192.168.0.100.
Escape character is '^]'.
getnameinfo: localhost: Success
Temporary failure in name resolution: Illegal seek
Connection closed by foreign host.

I am taking a complete guess here, but try this. On both machines, edit
/etc/hosts and add the line:

192.168.0.100 scooby.joehesse.lan scooby

Regards,

Mark.

--
Mark Hobley
393 Quinton Road West
QUINTON
Birmingham
B32 1QE

Email: markhobley at hotpop dot donottypethisbit com

http://markhobley.yi.org/

I second the notion; the message is probably issued by the telnet server box,
doing some name or ipaddress-to-name lookup, and hopefully priming the
hosts file will make that lookup succeed. If that is a good guess, then you
can speed up your testing by sitting at the telnet server console and making
sure that you don't get the dreaded "illegal seek" response when you try to
do host 192.168.0.100 or whatever it is you type to get a name for a known
ip address, and that you can attempt ping -c 1 scooby
without it complaining it cannot convert that name to an ip address. Erm, scooby
should probably be changed here to whatever the telnet distant client claims is
his hostname. Also, see if you can find a logged barf in like /var/log/messages
I guess when you do the doomed telnet attempt, to firm up the guess that this is
a dns lookup failure; the context of such a log entry may help suggest how to
either prevent or facilitate this seemingly overzealous chunk of the operating system.
Umm, if the new entry in /etc/hosts file on telnet server box doesn't enable the dns
tests I suggested, you may need to tweak something like /etc/nsswitch.conf so
hosts file takes priority over bind dns info...

Other info I googled suggested switching to a kerberos telnet server, but I wonder
if that would be rigged to work ok even if you don't use kerberos at your shop?

I'm guessing that selinux or something is just wanting to be helpful and log the start
of a telnet session with the optional details of "what is the hostname?" of the distant telnet
client box. Also, it is indeed cryptic to see the term 'invalid seek', but I did see the
phrase mentioned in some blog referring to some weird ldap
thing, about trying to get some associated group membership info where the group it
defaults to did not exist...

As long as you're already scoffing at accepted security practices, you _do_ know that
linux is going to lie to you and claim 'that is the wrong password!' when you're logging in
as userid root, right? Because you're coming in on 'device' pts/0 or pts/1 or etc...
and those aren't cited in /etc/securetty file. In truly 'trust me, this is a friendly
campus'
situations, I just delete or rename /etc/securetty and rhel4 at least has been willing to let
me telnet in as root on any device whatsoever, just some minor gripes in log files about the
missing securetty...


.



Relevant Pages

  • Re: Telnet Client search
    ... I'd seriously look into the NAT type solution, because CE does have that as ... Another possibility for your scenario is to make the CE Telnet Server act as ... you might be able to code up a Telnet client that does everything you need ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Telnet Negotiation Question!
    ... >> assuming that the telnet server is adding it as it looks very similar ... >A 0xff character means that the next character is a telnet command. ... if the telnet server or client receives such a character as ...
    (comp.unix.programmer)
  • Re: Embedded XP telnet server programming
    ... to use gethostbynameI need to know the client hostname. ... How can an application running into a telnet session know it? ... a commercial telnet server I used in the past will ...
    (microsoft.public.win32.programmer.networks)
  • Re: telnet long to offer login
    ... of telnet, also has no impact. ... As a quick try just add the Winsnooze IP address to /etc/hosts file on the telnet server and try if you can connect quickly. ... I don't know if the telnetd in Tru64 Unix does this and as a matter of fact modern services don't use it: the server might check by ident protocol who is the authenticated client process owner. ... If the first metnioned trick with the /etc/hosts file doesn't work - try to add to packet filter on the telnet server stating that outgoing packets directed to ident port should be rejected immediately. ...
    (comp.unix.tru64)
  • Re: TN3270 *from* a host??
    ... stating that there is no support for the 3270 data stream from the TELNET ... application talking to another VTAM application has to be cross-domain. ... to be talking about a TELNET client on one system talking to a TELNET server ... TN3270 server but does need to be distinguished from the z/OS UNIX TELNET ...
    (bit.listserv.ibm-main)