| Author |
Message |
|
|
Post subject: host name
Posted: Feb 14, 2008 - 12:04 PM
|
|
New Member
Joined: Jan 23, 2008
Posts: 7
|
|
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 |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: host name
Posted: Feb 14, 2008 - 04:31 PM
|
|
QNX Master
Joined: Jun 25, 2003
Posts: 1099
|
|
| You could put it in the /etc/resolv.conf file. |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: host name
Posted: Feb 15, 2008 - 10:52 AM
|
|
New Member
Joined: Jan 23, 2008
Posts: 7
|
|
I added this to my /etc/resolv.conf but no success.
domain my.domain
nameserver 192.168.x.y |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: host name
Posted: Feb 15, 2008 - 12:09 PM
|
|
QNX Master
Joined: Jun 25, 2003
Posts: 1099
|
|
I was thinking something more like
192.168.1.5 hostname |
|
|
| |
|
|
|
 |
|
|
Post subject: Re: RE: host name
Posted: Feb 15, 2008 - 12:10 PM
|
|
QNX Master
Joined: Jun 25, 2003
Posts: 1099
|
|
|
maschoen wrote:
I guess I spoke too quickly. I was thinking of /etc/hosts with something like:
192.168.1.5 hostname
|
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Re: RE: host name
Posted: Feb 15, 2008 - 01:17 PM
|
|
New Member
Joined: Jan 23, 2008
Posts: 7
|
|
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 |
|
|
| |
|
|
|
 |
|
|
Post subject: Re: host name
Posted: Feb 15, 2008 - 01:52 PM
|
|
|
|
On 14/02/2008 8:54 AM, RichardVerzijl wrote:
Quote:
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 |
|
|
| |
|
|
|
 |
|
|