From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,cd7426886200420 X-Google-Attributes: gidfee84,public From: mogul@pa.dec.com (Jeffrey Mogul) Subject: Re: Delayed login prompt when telnet�ing over big TCP/IP network Date: 1995/10/11 Message-ID: <45f66l$rj@usenet.pa.dec.com>#1/1 X-Deja-AN: 117379407 references: <1995Oct9.151139.616@gw2.admin.ch> <1995Oct10.090717.3211@zh014.ubs.ubs.ch> organization: DEC Western Research newsgroups: comp.unix.osf.osf1 >Beni Ruef (ruef@ivi.ch) wrote: >: We're part of huge, country-wide TCP/IP network with a lot of routers >: connecting hundreds of LAN's. >: >: When using TCP/IP services locally on our LAN we don't have any problems. >: >: When telnet'ing from outside to our _DEC_ machines _some_ TCP/IP services >: get massively delayed, not the SYN but the following data, i.e. >: "Connected to ..., Escape sequence: ^]" comes immediately but the login >: prompt itself is delayed (60 seconds on Ultrix, 80 seconds on OSF/1). >: >: This is dependent on the service resp. port number used: >: - telnet, ftp, smtp, http get delayed >: - daytime & finger don't >: >: This happens under both Ultrix 4.2 and OSF/1 3.2. >: Other Unices don't have this problem. I have a guess at what is happening: the server is trying to get the host name of the client. It has the client's IP address (from the getsockname() system call) but has to use the DNS system to do an inverse lookup. If the DNS configuration on your server is wrong (or perhaps if something is wrong with your local name servers), this reverse-lookup step might fail. I would not be surprised if it took 60 seconds for this to happen. One sure sign of this would be that commands such as "last" show, once a login succeeds, the system does not know the client's host name. (Also look at your http daemon logs.) But it's possible that your server is configured to try more than one name server, and it fails on the first one and succeeds on the second (or third, ...). One suggestion: I recommend configuring your http server to log IP addresses, not host names. Even when the DNS is working just fine, the cost of translating an address to a host name requires so much work that it can really slow down the server. If the DNS is working badly, the result is even worse. If you really want host names, translate them when reading the log, just for the log entries that are "interesting". -Jeff