From owner-freebsd-questions@FreeBSD.ORG Thu Feb 14 22:53:32 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id A23DC4BC for ; Thu, 14 Feb 2013 22:53:32 +0000 (UTC) (envelope-from vrwmiller@gmail.com) Received: from mail-ie0-x22c.google.com (ie-in-x022c.1e100.net [IPv6:2607:f8b0:4001:c03::22c]) by mx1.freebsd.org (Postfix) with ESMTP id 518F8222 for ; Thu, 14 Feb 2013 22:53:32 +0000 (UTC) Received: by mail-ie0-f172.google.com with SMTP id c10so4046126ieb.31 for ; Thu, 14 Feb 2013 14:53:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=EfmzD7VyjuygYuhkheMhJ3MkWEp83l8V8cUD8d7v8ZE=; b=QWQfHxiD//7YQ5Q4dny6vrv1CKQ5HIk+7svKmcxiWyHwPkhzIdsr1nfC2JR2QYuNFC ox8LAoXB7nKIiVwzZf7XEmQfBO+JeC8JnsOg1Tw3fJ4t11WOFKqzn5rYItl+3bLg3lWK S0tXB/2AaPa6aViyWFK9QxePThY+mfYSvF0zn1YeQijJau0xnPdGYrwnWlkaQLHO/mc/ dArti57hMK4Tx5RM8znhcnNEF95FtHETBDJ4/gVCC1HqiDr72kuQzDIo9LuMi6H0mvIU bcxSi5RLgmoEy8/f38wfYOtJv7mEKLrKY027Arefq5HVb+kP16dLEWRFT1/U5uAGKdEN tr3g== MIME-Version: 1.0 X-Received: by 10.50.193.200 with SMTP id hq8mr952760igc.101.1360882411841; Thu, 14 Feb 2013 14:53:31 -0800 (PST) Sender: vrwmiller@gmail.com Received: by 10.64.71.2 with HTTP; Thu, 14 Feb 2013 14:53:31 -0800 (PST) In-Reply-To: References: Date: Thu, 14 Feb 2013 17:53:31 -0500 X-Google-Sender-Auth: hn7wiMKSTRyr5R5prjHR2FJt0PM Message-ID: Subject: Re: Cannot resolve localhost From: Rick Miller To: Martin Pola , freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 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 22:53:32 -0000 Does the 'hosts' line in the nsswitch.conf direct the resolver to try 'files' before 'dns'? On 2/14/13, Martin Pola wrote: > Hi, > > 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 > > ** server can't find localhost: NXDOMAIN > > What am I missing? > > Kind regards, > Martin > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > -- Sent from my mobile device Take care Rick Miller