On 05/01/2014 05:04 PM, Alchemist wrote:



2014-05-01 23:52 GMT+03:00 Robert Moskowitz <r...@htt-consult.com <mailto:r...@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


-- 
users mailing list
users@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

Reply via email to