Hi guys,
I have experienced some problems with name resolving being under DHCP .
I have done following experiment:
My PC has QNXRTP and Windows. In both cases it receives IP address from
DHCP server.
So now the results :
- PC running Windows with hostname for example kvardin.
1.1 From other Windows station “ping kvardin” - OK it work.
1.2 From other QNXRTP obtaining IP address from the same DHCP server -
“ping kvardin” . Result “unknown host”.
- PC running QNXRTP with hostname kvardin. ( It is started as :
#dhcp.client -ien1 -hkvardin & )
2.1. From other Windows station “ping kvardin” - Result “Bad IP
address”
2.2 From other QNXRTP obtaining IP address from the same DHCP
server - “ping kvardin” . Result “unknown host”.
Maybe I am doing something wrong or this is a known bug !!
Anyway it is needed for tcp/ip applications using gethostname() and
gethostbyname(). That works for statically assigned addresses, but DHCP !!
Thank you in forward!
Kostadin Vardin
You’ll need to setup name resolution for QNX and Windows. I believe a
Windows machine can do name resolution using NetBIOS, so a windows machine
can find another Windows machine w/o using DNS.
Cheers,
Adam
With a PC, I always felt limited by the software available.
On Unix, I am limited only by my knowledge.
–Peter J. Schoenster <pschon@baste.magibox.net>
“Kostadin Vardin” <kvardin@primus.ca> wrote in
news:a6qcaq$akb$1@inn.qnx.com:
Hi guys,
I have experienced some problems with name resolving being under DHCP .
I have done following experiment:
My PC has QNXRTP and Windows. In both cases it receives IP address
from
DHCP server.
So now the results :
- PC running Windows with hostname for example kvardin.
1.1 From other Windows station “ping kvardin” - OK it work.
1.2 From other QNXRTP obtaining IP address from the same DHCP
server -
“ping kvardin” . Result “unknown host”.
- PC running QNXRTP with hostname kvardin. ( It is started as :
#dhcp.client -ien1 -hkvardin & )
2.1. From other Windows station “ping kvardin” - Result “Bad IP
address”
2.2 From other QNXRTP obtaining IP address from the same DHCP
server - “ping kvardin” . Result “unknown host”.
Maybe I am doing something wrong or this is a known bug !!
Anyway it is needed for tcp/ip applications using gethostname() and
gethostbyname(). That works for statically assigned addresses, but DHCP
!!
Thank you in forward!
Kostadin Vardin