From owner-freebsd-questions@FreeBSD.ORG Thu Nov 18 20:56:58 2004 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 79D1116A4CE for ; Thu, 18 Nov 2004 20:56:58 +0000 (GMT) Received: from mail-relay4.mirrorimage.net (mail-relay4.mirrorimage.net [209.58.140.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3AD1043D31 for ; Thu, 18 Nov 2004 20:56:58 +0000 (GMT) (envelope-from FreeBSD@keyslapper.org) Received: from localhost (unknown [10.10.4.59]) by mail-relay4.mirrorimage.net (Postfix) with SMTP id B9EBB69259 for ; Thu, 18 Nov 2004 15:56:57 -0500 (EST) Received: by localhost (sSMTP sendmail emulation); Thu, 18 Nov 2004 15:57:31 -0500 Date: Thu, 18 Nov 2004 15:57:31 -0500 From: Louis LeBlanc To: FreeBSD Questions Message-ID: <20041118205731.GB5086@keyslapper.org> Mail-Followup-To: FreeBSD Questions References: <47f8d9310411181243ef6862d@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <47f8d9310411181243ef6862d@mail.gmail.com> User-Agent: Mutt/1.5.6i Subject: Re: resolv.conf - hosts X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-questions@FreeBSD.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Nov 2004 20:56:58 -0000 On 11/18/04 02:43 PM, Brian Henning sat at the `puter and typed: > Greetings All: > > Is it possible to add a line above that name server entries in the > resolv.conf file that will tell the system to check the hosts file for > a resolution before querying the dns server(s)? > > Thanks, > > Brian That would be the /etc/host.conf file. Standard 5.3 version goes like this: # $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 So it will do that automagically anyway. If yours looks different than this, that would probably be why you're not getting the host lookup. Lou -- Louis LeBlanc FreeBSD@keyslapper.org Fully Funded Hobbyist, KeySlapper Extrordinaire :) http://www.keyslapper.org ԿԬ furbling, v.: Having to wander through a maze of ropes at an airport or bank even when you are the only person in line. -- Rich Hall, "Sniglets"