AFAIK, hosts is a DNS tool, exclusively.
Roberto Nunnari wrote:
Hello.
Sorry to post again even though I've been told I should post
to -questions.. but I believe this is a bug.
Here is some more info on my configuration:
(I rebuilt the kernel but this behaviour was present in GENERIC, too)
-bash-
> Umm, host(1) looks in the DNS for hostnames, as per the manpage:
>
> DESCRIPTION
> Host looks for information about Internet hosts. It gets this informa-
> tion from a set of interconnected servers that are spread across the
> world.
>
> It doesn't use /etc/hosts, just DNS. Tha
I see... you're completely right..
ping looks up /etc/hosts
while host and nslookup don't.
Sorry for the noise.
Thank you very much for your quick answers.
Best regards.
--
Roberto Nunnari -software engineer-
mailto:[EMAIL PROTECTED]
Scuola Universitaria Professi
Dear Fred,
if I call
-bash-2.05b# host localhost.
localhost has address 127.0.0.1
but that's only because the dns specified in resolv.conf
answers the query with its own 'localhost' entry. Look:
-bash-2.05b# host -d -t A localhost.
;; res_nmkquery(QUERY, localhost, IN, A)
;; res_send()
;; ->>HEAD
From: "Roberto Nunnari" <[EMAIL PROTECTED]>
> -bash-2.05b# cat /etc/hosts
> 127.0.0.1 localhost.noonlights.net localhost
> 192.168.1.5 jupiter.noonlights.net jupiter
> 192.168.1.5 jupiter.noonlights.net.
> 193.5.56.6 www.freebsd.org myfreebsd
>
> n
On Wed, May 28, 2003 at 02:08:04PM -0300, Fred Souza wrote:
> [snip]
>
> > -bash-2.05b# cat /etc/hosts
> > 193.5.56.6 www.freebsd.org myfreebsd
>
> [snip]
> > -bash-2.05b# cat /etc/nsswitch.conf
> > hosts: files dns
> >
> > -bash-2.05b# cat /etc/host.conf
> > hosts
> > bind
> >
>
[snip]
> -bash-2.05b# cat /etc/hosts
> 127.0.0.1 localhost.noonlights.net localhost
> 192.168.1.5 jupiter.noonlights.net jupiter
> 192.168.1.5 jupiter.noonlights.net.
> 193.5.56.6 www.freebsd.org myfreebsd
[snip]
> -bash-2.05b# cat /etc/nsswitch.
Hello.
Sorry to post again even though I've been told I should post
to -questions.. but I believe this is a bug.
Here is some more info on my configuration:
(I rebuilt the kernel but this behaviour was present in GENERIC, too)
-bash-2.05b# uname -a
FreeBSD jupiter.noonlights.net 5.0-RELEASE FreeBS