I am having a strange problem, I have set up TCP/IP network windows and QNX machines, When I am testing the connection, If I ping using the ipaddress of the windows machine it works fine, but when I try to ping using the hostname, I see error unknown host. (Note: Name server here is not configured correct, hence i added the IP in the /etc/hosts file).
If I do the above in another QNX machine which is also in the same network, everything seems to work fine.
Any Ideas, what could be the Issue?
Check the config of the file /etc/resolv.conf it indicates how to resolve name.
Thank you very much.
I modified the /etc/hosts file with ipaddress and hostname
also I commented out all entries in /etc/resolv.conf. It works fine now.