localhost name resolution problem
Toomas Aas
toomas.aas at raad.tartu.ee
Tue Apr 1 01:19:42 PST 2003
Hello!
> # host localhost
> localhost.my.domain is a nickname for my.domain
> my.domain has address 202.x.x.x
>
>
> Someone suggested I check localhost.:
>
> # host localhost.
> Host not found.
AFAIK the host command doesn't use /etc/hosts. No matter what is
specified in /etc/host.conf, the host command always uses DNS.
I got bitten by the same thing a couple of weeks ago.
To check whether localhost resolves to 127.0.0.1, try for example
'ping localhost'
Given the contents of your hosts file, you should be OK.
--
Toomas Aas | toomas.aas at raad.tartu.ee | http://www.raad.tartu.ee/~toomas/
* Do infants enjoy infancy as much as adults enjoy adultery?
More information about the freebsd-questions
mailing list