Re: #host localhost



In article <df4kk9owuijn.dlg@xxxxxxxxxxxxxxxxx>,
Oliver Cromm <lispamateur@xxxxxxxx> wrote:

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

no "domain" either ?
try `host -N 0 localhost`

2. using DNS to resolve, never the hosts file

host do use DNS for name resolving, never the hosts file (ping uses both)

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

DESCRIPTION
host is a simple utility for performing DNS lookups.


On my gateway :

$ host localhost
localhost has address 127.0.0.1
Host localhost not found: 3(NXDOMAIN)
Host localhost not found: 3(NXDOMAIN)

$ cat /etc/resolv.conf
nameserver 212.27.54.252
nameserver 212.27.53.252

local DNS running (named).

patpro

--
http://www.patpro.net/
.



Relevant Pages

  • Re: Internet connection on Linux
    ... nameserver 208.67.222.222 ... They are the IP addresses of Open DNS. ... %> host www.yahoo.com 208.67.222.222 ... jack - Grapevine/Richardson ...
    (comp.os.linux.networking)
  • Re: host -6 failure
    ... Subject: host -6 failure ... using an ipv4 mapped ipv6 address (which ... the second nameserver ... This causes a dns query for an IPv6 ...
    (freebsd-questions)
  • Re: VPC 7.0.2 Virtual Switch issue
    ... >I use a Linux gateway that provides both DHCP & DNS so the config is ... >I'd eliminated DNS by specifying IP Addresses so that's not an issue. ... I had problems with the VPC networking until I hard coded the nameserver ... but I think that the VPC and the OS X host share the same ...
    (microsoft.public.mac.virtualpc)
  • 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: 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)