Re: #host localhost
- From: patpro ~ patrick proniewski <patpro@xxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 28 Jul 2007 00:08:45 +0200
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/
.
- References:
- #host localhost
- From: Oliver Cromm
- #host localhost
- Prev by Date: #host localhost
- Next by Date: Re: #host localhost
- Previous by thread: #host localhost
- Next by thread: Re: #host localhost
- Index(es):
Relevant Pages
|