Cannot resolve localhost

Erich Dollansky erichsfreebsdlist at
Thu Feb 14 23:56:46 UTC 2013


On Thu, 14 Feb 2013 23:35:12 +0100
Martin Pola <martin.pola at> wrote:

> I'm trying to get my FreeBSD system to resolve localhost into
>, but unfortunately it doesn't work. It appears the resolver
> is never reading from /etc/hosts, where I have this line:
> localhost
> Here's a sample output of what I get when I try to resolve the name:
> $ nslookup localhost
> ;; Got recursion not available from, trying next server
> Server:
> Address:

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.


More information about the freebsd-questions mailing list