I have in mind that question was asked before, but I can’t remember.
We are currently using TCPIP5.0 and we have a tcp-server application
answering some request by clients. The QNX nodes are properly setup in
The client connects to the server by calling gethostbyname(“QNX05”) and it
Now we want to have access to the internet as well.
So we added a default route with ‘route add 0.0.0.0 gateway’ and configured
the resolv.conf like
lookup file bind <— this should look for names first in /etc/hosts and
second using the nameservers.
Now the problem starts: gethostbyname(“QNX05”) is not able to connect to
nslookup QNX05 shows that /etc/hosts ist ignored and QNX05 can not be
resolved by a nameserver (correct: I would wonder if so).
nslookup www.qnx.com works correct.
Why is gethostbyname not working ?
(We tried with the dot notation instead of the name and this worked, i.e.
ping works for both, i. e.ping QNX05 is correct.
Do i have a configuration problem ?