From owner-freebsd-stable Sat Jul 1 0:48:38 2000 Delivered-To: freebsd-stable@freebsd.org Received: from deborah.paradise.net.nz (deborah.paradise.net.nz [203.96.152.32]) by hub.freebsd.org (Postfix) with ESMTP id 04DE837BEB6 for ; Sat, 1 Jul 2000 00:48:26 -0700 (PDT) (envelope-from marki@paradise.net.nz) Received: from evileye (203-79-95-118.apx0.paradise.net.nz [203.79.95.118]) by deborah.paradise.net.nz (8.10.1/8.10.1) with SMTP id e617m9i12650; Sat, 1 Jul 2000 19:48:10 +1200 (NZST) Message-ID: <001101bfe330$b138faa0$0101a8c0@rf.org> From: "Mark Ibell" To: Cc: References: <200007010532.WAA09706@freeway.dcfinc.com> Subject: Re: [Fwd: telnet/tcp problems in 4.0-RELEASE] Date: Sat, 1 Jul 2000 19:47:15 +1200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I understand what you were saying in your recent post (~23rd) but don't think that it completely explains my difficulties. The problem appears to be related to the absence of a domain extension. For example, on the machine in question (mars.econz.co.nz): # ftp localhost [pauses for 75 seconds] # ftp localhost.econz.co.nz [connects straight away] # ftp mars [pauses for 75 seconds] # ftp mars.econz.co.nz [connects straight away] # ftp shiva [pauses for 75 seconds] # ftp shiva.econz.co.nz [connects straight away] I think the reason incoming telnet fails is because of the fact that a 'login -h shiva -p' is spawned on localhost, where 'shiva' is of course without a domain extension. Here's my /etc/host.conf: # cat host.conf hosts resolv.conf # $FreeBSD: src/etc/host.conf,v 1.6 1999/08/27 23:23:41 peter Exp $ # First try the /etc/hosts file hosts # Now try the nameserver next. bind # If you have YP/NIS configured, uncomment the next line # nis Here's my /etc/hosts: 127.0.0.1 localhost 172.16.1.73 mars.econz.co.nz mars Here's my /etc/resolv.conf: domain econz.co.nz nameserver 172.16.0.1 Nothing flash here at all which is why I am now puzzled again. I mean, it used to work I swear! ----- Original Message ----- From: Chad R. Larson To: Mark Ibell Cc: Sent: Saturday, July 01, 2000 5:32 PM Subject: Re: [Fwd: telnet/tcp problems in 4.0-RELEASE] > As I recall, Mark Ibell wrote: > > It does appear to be a dns problem after all. After renaming > > resolv.conf to resolv.conf.bak the problem is cured, although only > > hosts in the hosts file can be looked up. The strange thing is that > > both the 'nslookup' & 'host' commands both appeared to retrieve the > > correct information from the dns server (for both forward and reverse > > lookups) on our network. > > A week or two ago I posted about the circumstances in which host and > nslookup can give you misleading results, and a program to demonstrate > the fact. > > It has to do with how /etc/host.conf can be set to override what DNS > servers will tell you, but host, dig and nslookup query the resolver > directly, not using the gethostbyname(3) call, as an application > would. > > In your case, if "hosts" is in your /etc/host.conf ahead of "bind", > then you need to look for an entry in your /etc/hosts file that > would result in namespace overloading. > > And, check my earlier mail in the archives... > > -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 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message