Date: Thu, 14 Feb 2013 17:53:31 -0500 From: Rick Miller <vmiller@hostileadmin.com> To: Martin Pola <martin.pola@kottnet.net>, freebsd-questions@freebsd.org Subject: Re: Cannot resolve localhost Message-ID: <CAHzLAVENf9ztyh3rev4qyHA6XiXHJOS3ohiXO77cO-Kv_BgZcQ@mail.gmail.com> In-Reply-To: <wde4r3glj3qd2trs7jp8app3.1360881125775@email.android.com> References: <wde4r3glj3qd2trs7jp8app3.1360881125775@email.android.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Does the 'hosts' line in the nsswitch.conf direct the resolver to try 'files' before 'dns'? On 2/14/13, Martin Pola <martin.pola@kottnet.net> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHzLAVENf9ztyh3rev4qyHA6XiXHJOS3ohiXO77cO-Kv_BgZcQ>