From owner-freebsd-stable Tue Jul 18 11:58:41 2000 Delivered-To: freebsd-stable@freebsd.org Received: from freeway.dcfinc.com (cx74889-a.phnx3.az.home.com [24.1.193.157]) by hub.freebsd.org (Postfix) with ESMTP id 4906737B8F8 for ; Tue, 18 Jul 2000 11:58:38 -0700 (PDT) (envelope-from chad@freeway.dcfinc.com) Received: (from chad@localhost) by freeway.dcfinc.com (8.8.8/8.8.8) id LAA20068; Tue, 18 Jul 2000 11:58:33 -0700 (MST) (envelope-from chad) From: "Chad R. Larson" Message-Id: <200007181858.LAA20068@freeway.dcfinc.com> Subject: Re: Telnet problem under 4.1-RC In-Reply-To: <46060.963943309@pinhead.parag.codegen.com> from Parag Patel at "Jul 18, 0 11:01:49 am" To: parag@cgt.com (Parag Patel) Date: Tue, 18 Jul 2000 11:58:32 -0700 (MST) Cc: stable@FreeBSD.ORG Reply-To: chad@DCFinc.com X-Mailer: ELM [version 2.4ME+ PL40 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Check your /etc/host.conf file to see if you're using the /etc/hosts file before the nameserver ("hosts" ahead of "bind"). If so, check for a valid entry in your hosts file. When you run "nslookup", it queries the nameserver directly. But most applications call "gethostbyname(3)", which (depending on the contents of /etc/host.conf and /etc/hosts) can return a different result. As I recall, Parag Patel wrote: > All hostname lookups are failing from telnet, but only from telnet and > only hostnames. Here's the problem: > > $ telnet localhost > localhost: No address associated with hostname > $ nslookup localhost > Server: localhost.parag.codegen.com > Address: 127.0.0.1 > > Name: localhost.parag.codegen.com > Address: 127.0.0.1 > > $ ping -c 1 localhost > PING localhost.parag.codegen.com (127.0.0.1): 56 data bytes > 64 bytes from 127.0.0.1: icmp_seq=0 ttl=255 time=0.167 ms > > --- localhost.parag.codegen.com ping statistics --- > 1 packets transmitted, 1 packets received, 0% packet loss > round-trip min/avg/max/stddev = 0.167/0.167/0.167/0.000 ms > > $ telnet 127.0.0.1 > Trying 127.0.0.1... > Connected to localhost.parag.codegen.com. > Escape character is '^]'. > login: ^D > Connection closed by foreign host. > $ > > ftp/ssh/etc all work fine with the same hostnames. telnet works with an > IP address but fails to lookup *any* hostname - local or otherwise - so > it doesn't seem to be a telnetd problem. ftp works fine to localhost. > > I just now updated my copy of the CVS tree and updated /usr/src but > nothing in the usr.bin/telnet directory has been updated. I can't spot > anything obvious in the CVS logs either. > > Anyone have any ideas I can try out to figure out what's going on? > (Odds are I've forgotten something.) Thanks in advance. > > > -- Parag Patel > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-stable" in the body of the message > -crl -- Chad R. Larson (CRL15) 602-953-1392 Brother, can you paradigm? chad@dcfinc.com chad@larsons.org larson1@home.net DCF, Inc. - 14623 North 49th Place, Scottsdale, Arizona 85254-2207 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message