host command not seeming to use /etc/hosts file
Robert Moskowitz
rgm at htt-consult.com
Fri May 2 02:32:25 UTC 2014
On 05/01/2014 05:04 PM, Alchemist wrote:
>
>
>
> 2014-05-01 23:52 GMT+03:00 Robert Moskowitz <rgm at htt-consult.com
> <mailto: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
multi on
> and /etc/nsswitch.conf for correct order
> hosts: files dns
hosts: files mdns4_minimal [NOTFOUND=return] dns myhostname
> However results may differ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/users/attachments/20140501/823c6f2b/attachment.html>
More information about the users
mailing list