From owner-freebsd-questions@FreeBSD.ORG Wed May 28 07:23:54 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 674C437B401 for ; Wed, 28 May 2003 07:23:54 -0700 (PDT) Received: from mail.die.supsi.ch (mail.die.supsi.ch [193.5.153.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id C753D43F93 for ; Wed, 28 May 2003 07:23:52 -0700 (PDT) (envelope-from nunnari@die.supsi.ch) Received: from die.supsi.ch (pcm2022.die.supsi.ch [193.5.152.22]) by mail.die.supsi.ch (8.11.6/8.11.6) with ESMTP id h4SENWU26813; Wed, 28 May 2003 16:23:32 +0200 Message-ID: <3ED4C663.4030609@die.supsi.ch> Date: Wed, 28 May 2003 16:23:31 +0200 From: Roberto Nunnari User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ruben de Groot , david@catwhisker.org, danny@ricin.com, freebsd-questions@freebsd.org References: <3ED4916A.20209@die.supsi.ch> <20030528113222.GA865@ei.bzerk.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: cannot resolve localhost X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 May 2003 14:23:54 -0000 I have nsswitch.conf in place -bash-2.05b# cat /etc/nsswitch.conf hosts: files dns and removed host.conf and rebooted the machine. rc.network recreated correctly host.conf from nsswitch.conf as: -bash-2.05b# cat /etc/host.conf # Auto-generated from nsswitch.conf, do not edit hosts bind but the problem is still there... any ideas? Ruben de Groot wrote: > On Wed, May 28, 2003 at 12:37:30PM +0200, Roberto Nunnari typed: > >>Hi there. > > > Hi, > > 5.0-RELEASE != current, you would better have asked this on -questions. > To answer your question: > > man nsswitch.conf > > cheers, > Ruben > > >>it seems that my 5.0-Release box, >>when trying to resolve a name to the associated IP it only >>tries the DNSs listed in resolv.conf, and never tries /etc/hosts >> >>Also.. where is /etc/host.conf gone? I tried to create one, but it >>doesn't help. >> >>Here is some more info on my configuration: >>(I rebuilt the kernel but this behaviour was present in GENERIC, too) >> >>-bash-2.05b# uname -a >>FreeBSD jupiter.noonlights.net 5.0-RELEASE FreeBSD 5.0-RELEASE #0: Wed May >>28 11:50:07 CEST 2003 >>root@jupiter.noonlights.net:/usr/src/sys/i386/compile/JUPITER01 i386 >> >>-bash-2.05b# cat /etc/rc.conf >>keymap="swissgerman.iso.acc" >>moused_enable="YES" >>saver="warp" >>defaultrouter="192.168.1.1" >>hostname="jupiter.noonlights.net" >>ifconfig_rl0="inet 192.168.1.5 netmask 255.255.255.0" >>sendmail_enable="YES" >>sshd_enable="YES" >>linux_enable="YES" >> >> >>-bash-2.05b# cat /etc/hosts >>127.0.0.1 localhost.noonlights.net localhost >>192.168.1.5 jupiter.noonlights.net jupiter >>192.168.1.5 jupiter.noonlights.net. >> >> >>-bash-2.05b# cat /etc/resolv.conf >>domain noonlights.net >>nameserver 195.190.166.166 >>nameserver 195.190.166.167 >> >>-bash-2.05b# cat /etc/host.conf >>hosts >>bind >> >> >>-bash-2.05b# host localhost >>Host not found. >> >>-bash-2.05b# host localhost.noonlights.net >>Host not found. >> >>-bash-2.05b# nslookup localhost >>Server: ns1.ticino.com >>Address: 195.190.166.166 >> >>Non-authoritative answer: >>Name: localhost >>Address: 127.0.0.1 >> >> >>-bash-2.05b# host jupiter >>Host not found. >> >>-bash-2.05b# host jupiter.noonlights.net >>Host not found. >> >>What's wrong? >> >>Thank you. >> -- Roberto Nunnari -software engineer- mailto:nunnari@die.supsi.ch Scuola Universitaria Professionale della Svizzera Italiana Dipartimento di Informatica e Elettronica http://www.die.supsi.ch SUPSI-DIE Via Cantonale tel: +41-91-6108561 6928 Manno """ fax: +41-91-6108570 Switzerland (o o) =======================oOO==(_)==OOo========================