host command not seeming to use /etc/hosts file

Alchemist raimiiic at gmail.com
Thu May 1 21:04:36 UTC 2014


2014-05-01 23:52 GMT+03:00 Robert Moskowitz <rgm at htt-consult.com>:

> F20
>
> I put an IPv4 entry for a server in my /etc/hosts file.  I can 'ping bob',
> but 'host bob' comes back with:
>
> Host bob not found: 3(NXDOMAIN)
>
> I have this vague memory from years back about a file that set precedence
> of hosts file and dns for fqdn lookup.  Can't remember it of find it.
>
> Of course the problem might simply be the host command is incapable of
> processing the /etc/hosts file?
>
> thanks for any help on this.
>
>
Check your /etc/host.conf for line
order hosts,bind
and /etc/nsswitch.conf for correct order
hosts: files dns
 However results may differ

> --
> users mailing list
> users at lists.fedoraproject.org
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
> Have a question? Ask away: http://ask.fedoraproject.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/users/attachments/20140502/4b99a483/attachment-0001.html>


More information about the users mailing list