#host localhost



Is there nothing one can do about "host localhost" showing nonsense? I
spent an hour trying to "solve" this problem until I read a comment to
the effect that this doesn't work correctly on FreeBSD anyway, and all
is well if "ping localhost" goes right.

All my settings are the way it's described here:
http://wiki.unixboard.de/index.php/FreeBSD_-_Namensaufl%C3%B6sung

But "host" insists on
1. adding the domain to "localhost", even when there is no "search" in
resolv.conf
2. using DNS to resolve, never the hosts file

Maybe the man page for host should mention that? I guess I just ought to
use dig.

Well, host doesn't quite work on a RedHat Linux server at work, too, the
answer is:

Host localhost not found: 2(SERVFAIL)

But that's slightly better than getting back an external IP. Is that the
fault of the DNS server I'm using (openDNS)?

--
Strategy: A long-range plan whose merit cannot be evaluated until
sometime after those creating it have left the organization.
.



Relevant Pages

  • Re: Host Internet Address Problem
    ... # host localhost ... Host localhost not found: 3 ... do I complain to Comcast? ... this I'm getting that, in the past, Comcast didn't give me a hostname. ...
    (Fedora)
  • Re: #host localhost
    ... But "host" insists on ... host is a simple utility for performing DNS lookups. ... Host localhost not found: 3 ... nameserver 212.27.54.252 ...
    (comp.unix.bsd.freebsd.misc)
  • Re: After Dapper Update NFS/SMB dont work
    ... Host Main.MSHOME not found: 3 ... jeremy@Main:/etc$ host localhost ... So I would guess I can't resolve the server. ... > "Feliz el hombre que ha hallado sabiduria y el hombre que consigue ...
    (Ubuntu)
  • Re: /etc/hosts isnt being read
    ... passwd: compat ... passwd_compat: nis ... Host example not found: 3 ... Host localhost not found: 3 ...
    (freebsd-questions)
  • Re: How to resolve names
    ... So I can ping and try to ssh/telnet the 2 other machines from my PC via ... I cannot do it by using their host names although I get proper ... I assume that the router is acting as the DNS server, ... # passwd: files nis ...
    (comp.os.linux.networking)