From owner-freebsd-questions Thu Feb 14 16: 4:20 2002 Delivered-To: freebsd-questions@freebsd.org Received: from barney.usu.edu (barney.usu.edu [129.123.1.89]) by hub.freebsd.org (Postfix) with ESMTP id 2CA3337B400 for ; Thu, 14 Feb 2002 16:04:18 -0800 (PST) Received: from buffy.usu.edu ("port 49401"@buffy.usu.edu [129.123.1.184]) by cc.usu.edu (PMDF V5.2-32 #39089) with ESMTP id <01KE9SI9CHWO90NF2S@cc.usu.edu> for freebsd-questions@FreeBSD.ORG; Thu, 14 Feb 2002 17:03:58 MST Date: Thu, 14 Feb 2002 17:03:58 -0700 From: Hal Lynch Subject: /etc/hosts vs nslookup To: FreeBSD Questions Message-id: <8251D08A-21A7-11D6-9E04-0050E490FD5B@cc.usu.edu> MIME-version: 1.0 (Apple Message framework v480) X-Mailer: Apple Mail (2.480) Content-type: text/plain; charset=US-ASCII; format=flowed Content-transfer-encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Suppose I ssh to host a.b.c.d. How is the actual IP address found? Does the software look first in my /etc/hosts file and only if a.b.c.d is not there ask my nameserver? Or does it just ask the nameserver no matter what? The latter seems to be the case. If so is there anything I can do about it? I remember my Ultrix days where there was an svcorder file that defined a precedence for name resolution. In a related matter if I ssh to 1.2.3.4 the software seems to query the nameserver anyway. Is this the way it is supposed to be? Why I am asking these questions is that when the nameserver is down is the exact time I desperately need to ssh and scp to it. Looking for clues I believe ssh 1.2.3.4 didn't query the nameserver until I locked into Protocol 2. BTW I am running 4.4 and the ssh that is in on the cdrom. hal To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message