OpenQNX :: The QNX Community Portal

Oct 12, 2008 - 05:42 PM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 17 unlogged users and 0 registered users online.

You can log-in or register for a user account here.

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
RichardVerzijl
Post subject: host name  PostPosted: 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
 
 View user's profile Send private message  
Reply with quote Back to top
maschoen
Post subject: RE: host name  PostPosted: Feb 14, 2008 - 04:31 PM
QNX Master


Joined: Jun 25, 2003
Posts: 1099

You could put it in the /etc/resolv.conf file.
 
 View user's profile Send private message Send e-mail Visit poster's website  
Reply with quote Back to top
RichardVerzijl
Post subject: RE: host name  PostPosted: 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
 
 View user's profile Send private message  
Reply with quote Back to top
maschoen
Post subject: RE: host name  PostPosted: 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
 
 View user's profile Send private message Send e-mail Visit poster's website  
Reply with quote Back to top
maschoen
Post subject: Re: RE: host name  PostPosted: 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
 
 View user's profile Send private message Send e-mail Visit poster's website  
Reply with quote Back to top
RichardVerzijl
Post subject: RE: Re: RE: host name  PostPosted: 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
 
 View user's profile Send private message  
Reply with quote Back to top
Ryan J. Allen
Post subject: Re: host name  PostPosted: Feb 15, 2008 - 01:52 PM
Guest





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
 
   
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
All logos and trademarks in this site are property of their respective owners. The comments are property of their posters.
Powered by OpenQNX: The QNX Community Portal Site
QNX and the QNX logo are registered trademarks of QNX Software Systems.