From owner-freebsd-questions@FreeBSD.ORG Thu Feb 14 23:56:46 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 8431ADD3 for ; Thu, 14 Feb 2013 23:56:46 +0000 (UTC) (envelope-from erichsfreebsdlist@alogt.com) Received: from alogt.com (alogt.com [69.36.191.58]) by mx1.freebsd.org (Postfix) with ESMTP id 4A157645 for ; Thu, 14 Feb 2013 23:56:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=alogt.com; s=default; h=Content-Transfer-Encoding:Content-Type:Mime-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date; bh=crScJWjL+HGdR8GIdeo6SR0FiBlYWOJtTox6JFwuCHs=; b=cY2Xi7LJZnB7Jr3e9Or1N6qudQyJJLwf67w18BnXpSaDDQwxnK1Oqvur1e1pXa7XeCfEKMeAyPHk8PbgXyPT8BzgtXRak4ifV9v9AqJ9tZN9QYvpjkOdap6Gzb7x5Ltm; Received: from [122.129.203.50] (port=33301 helo=X220.ovitrap.com) by sl-508-2.slc.westdc.net with esmtpsa (SSLv3:DHE-RSA-AES128-SHA:128) (Exim 4.80) (envelope-from ) id 1U68fP-000Hvb-Ho; Thu, 14 Feb 2013 16:56:40 -0700 Date: Fri, 15 Feb 2013 06:56:34 +0700 From: Erich Dollansky To: Martin Pola Subject: Re: Cannot resolve localhost Message-ID: <20130215065634.25eada84@X220.ovitrap.com> In-Reply-To: References: X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.6; amd64-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - sl-508-2.slc.westdc.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - alogt.com X-Get-Message-Sender-Via: sl-508-2.slc.westdc.net: authenticated_id: erichsfreebsdlist@alogt.com X-Source: X-Source-Args: X-Source-Dir: Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Feb 2013 23:56:46 -0000 Hi, On Thu, 14 Feb 2013 23:35:12 +0100 Martin Pola wrote: > I'm trying to get my FreeBSD system to resolve localhost into > 127.0.0.1, but unfortunately it doesn't work. It appears the resolver > is never reading from /etc/hosts, where I have this line: 127.0.0.1 > localhost > > Here's a sample output of what I get when I try to resolve the name: > $ nslookup localhost > ;; Got recursion not available from 91.90.24.250, trying next server > Server: 8.8.8.8 > Address: 8.8.8.8#53 you have a problem but I do not know which one. > > ** server can't find localhost: NXDOMAIN > > What am I missing? nslookup queries a name server. It does not check your /etc/hosts. Erich