host name

bridged with qnx.newuser
Post Reply
RichardVerzijl

host name

Post by RichardVerzijl » Thu Feb 14, 2008 1:54 pm

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

maschoen

RE: host name

Post by maschoen » Thu Feb 14, 2008 5:54 pm

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

RichardVerzijl

RE: host name

Post by RichardVerzijl » Fri Feb 15, 2008 11:54 am

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

domain my.domain
nameserver 192.168.x.y

Ryan J. Allen

Re: host name

Post by Ryan J. Allen » Fri Feb 15, 2008 1:52 pm

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

maschoen

RE: host name

Post by maschoen » Fri Feb 15, 2008 1:54 pm

I was thinking something more like

192.168.1.5 hostname

RichardVerzijl

RE: Re: RE: host name

Post by RichardVerzijl » Fri Feb 15, 2008 1:54 pm

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

maschoen

Re: RE: host name

Post by maschoen » Fri Feb 15, 2008 1:54 pm

maschoenwrote:
I guess I spoke too quickly. I was thinking of /etc/hosts with
something like:
192.168.1.5 hostname

Post Reply

Return to “qnx.newuser”