host name

Hi,

My QNX6.3.2 machine is in a network (DHCP). When I ping this machine
from an other machine I don’t see the host name although it has one.
What do I need to do so the QNX machine will show its host name?

Regards,
richard

You could put it in the /etc/resolv.conf file.

I added this to my /etc/resolv.conf but no success.

domain my.domain
nameserver 192.168.x.y

On 14/02/2008 8:54 AM, RichardVerzijl wrote:

My QNX6.3.2 machine is in a network (DHCP). When I ping this machine
from an other machine I don’t see the host name although it has one.
What do I need to do so the QNX machine will show its host name?

If you want to be able to “ping qnxmachine” from another computer then
“qnxmachine” has to be defined either in your network’s DNS servers or
in your local /etc/hosts file.

If you want traffic from “qnxmachine”'s IP to reverse DNS to the name
“qnxmachine” you need to have the reverse DNS information put in the DNS
server on your network.


Ryan J. Allen
QNX Software Systems

I was thinking something more like

192.168.1.5 hostname

I did it.
$/usr/sbin/dhcp.client -i en0 -m -u -t 1 -h MyHostName

Now the right things are in /etc/net.cfg

hostname MyHostName
domain my.domain
nameserver 192.168.x.y
route 192.168.a.b 0.0.0.0 0.0.0.0
lookup file bind

maschoenwrote:
I guess I spoke too quickly. I was thinking of /etc/hosts with

something like:

192.168.1.5 hostname