From owner-freebsd-questions@FreeBSD.ORG Fri Feb 18 04:05:18 2005 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 E2AA316A4D0 for ; Fri, 18 Feb 2005 04:05:18 +0000 (GMT) Received: from floyd.gnulife.org (ns1.gnulife.org [199.86.32.49]) by mx1.FreeBSD.org (Postfix) with ESMTP id 134BC43D5E for ; Fri, 18 Feb 2005 04:05:18 +0000 (GMT) (envelope-from jamie@gnulife.org) Received: from floyd.gnulife.org (localhost.gnulife.org [127.0.0.1]) by floyd.gnulife.org (8.12.11/8.12.11) with ESMTP id j1I44Nge078710 for ; Thu, 17 Feb 2005 22:04:23 -0600 (CST) (envelope-from jamie@gnulife.org) Received: from localhost (jamie@localhost)j1I44Mcp078707 for ; Thu, 17 Feb 2005 22:04:23 -0600 (CST) (envelope-from jamie@gnulife.org) X-Authentication-Warning: floyd.gnulife.org: jamie owned process doing -bs Date: Thu, 17 Feb 2005 22:04:22 -0600 (CST) From: Jamie Ostrowski To: freebsd-questions@freebsd.org Message-ID: <20050217215904.G78640@floyd.gnulife.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Unexpected resolver behavior 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: Fri, 18 Feb 2005 04:05:19 -0000 I'm running 4.10-p5 on my workstation at home, and I can't understand why I cannot get www.foo.com to resolve to an IP I am specifying in /etc/hosts (I want to over-ride the IP returned by the nameserver I query by default). in /etc/hosts: 199.xx.xx.24 www.foo.com. in /etc/host.conf: # $FreeBSD: src/etc/host.conf,v 1.6 1999/08/27 23:23:41 peter Exp $ # First try the /etc/hosts file /etc/hosts # Now try the nameserver next. bind # If you have YP/NIS configured, uncom (I have no nsswitch.conf file in /etc) But when I try to resolve www.foo.com from the command line, I am getting the IP address from the nameserver from the outside world rather than the IP from /etc/hosts. I am not running a local named on this machine, either. Any ideas? - Jamie The Moon is Waxing Gibbous (71% of Full)