Cannot resolve localhost

Martin Pola martin.pola at
Thu Feb 14 22:42:05 UTC 2013


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 can't find localhost: NXDOMAIN
What am I missing?

Kind regards,

More information about the freebsd-questions mailing list