Brian McKee wrote:
> I don't understand why 'host fred' doesn't return 127.0.0.1

Because host is a BIND (Berkeley Internet Name Daemon) command it only
reports DNS data from nameservers.  /etc/hosts isn't a nameserver and
so isn't used.

This is also true of the 'dig' command.

There are actually two different 'host' commands.  There is the host
command from the host package and the host command from the bind9-host
package.  I always use the BIND version of host.

Bob

Attachment: signature.asc
Description: Digital signature

Reply via email to