From owner-freebsd-current@FreeBSD.ORG Sat May 22 11:05:47 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8E33816A4CE for ; Sat, 22 May 2004 11:05:47 -0700 (PDT) Received: from kayjay.xs4all.nl (kayjay.xs4all.nl [80.126.33.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id EFDC243D41 for ; Sat, 22 May 2004 11:05:46 -0700 (PDT) (envelope-from karelj@kayjay.xs4all.nl) Received: from kayjay.xs4all.nl (localhost.kayjay.xs4all.nl [127.0.0.1]) by kayjay.xs4all.nl (8.12.11/8.12.11) with ESMTP id i4MI5NWr064754; Sat, 22 May 2004 20:05:23 +0200 (CEST) (envelope-from karelj@kayjay.xs4all.nl) Received: (from karelj@localhost) by kayjay.xs4all.nl (8.12.11/8.12.11/Submit) id i4MI5MNY064753; Sat, 22 May 2004 20:05:22 +0200 (CEST) (envelope-from karelj) Date: Sat, 22 May 2004 20:05:22 +0200 From: "Karel J. Bosschaart" To: Robin Schoonover Message-ID: <20040522180522.GA64710@kayjay.xs4all.nl> References: <20040522111520.GA63653@kayjay.xs4all.nl> <20040522092453.1d180c46@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040522092453.1d180c46@localhost> User-Agent: Mutt/1.4.2.1i cc: freebsd-current@freebsd.org Subject: Re: resolver problem with Opera X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 May 2004 18:05:47 -0000 On Sat, May 22, 2004 at 09:24:53AM -0600, Robin Schoonover wrote: > On Sat, 22 May 2004 13:15:20 +0200, Karel J. Bosschaart wrote: > > > > It seems that Opera on -current ignores /etc/hosts on my system: the > > hostname I type in the address bar is resolved using the nameserver > > while there is an entry for it in /etc/hosts. Using konqueror, name > > resolution is as expected, it resolves to the local address specified > > in /etc/hosts. > > > > I'm not entirely sure, but I think opera loads /etc/hosts into memory at > start, and never reads it again. Sometimes it seems to check the > nameserver first, and -then- /etc/hosts, but usually it seems to check > /etc/hosts first. I'm really unsure on what opera's logic concerning it > is, and it seems like opera is doing all the dirty work on its own. The strange thing is that the same Opera version on -stable *does* check the /etc/hosts first. If I remove /etc/resolv.conf on the -current machine Opera checks /etc/hosts and resolves the name correctly but that's obviously not a good solution. I posted my problem on the Opera/FreeBSD forum hoping someone can clear this up. Thanks for the reply, Karel.