Name server stuff

Hi,
I’m working on a project where users will connect to sites on the Internet
and their machines will be configured statically. I’ve come across a
problem that I hope I can fix (without too much difficulty).

Whenever I try to ping a website in name form (like www.qnx.com) I get
unknown host errors. If I start up a unit and run dhcp.client, I can ping
it without difficulty. I’ve then KEPT the copy of resolv.conf generated by
dhcp.client and restarted to run statically. I still can’t ping the
addresses.

My startup for my network stuff is:
Net &
Net.rtl &
Socket mymachine &
ifconfig en1 192.168.1.30 netmask 255.255.255.0 up

What else might I run to make sure I can gain access to the name servers?
(ie, resolv.conf is used, or some way to specify to some driver the address
of the DNS server so when I make name requests it will process them).

TIA,
R B Adler

R B Adler <request@mapson.com> wrote:

Hi,
I’m working on a project where users will connect to sites on the Internet
and their machines will be configured statically. I’ve come across a
problem that I hope I can fix (without too much difficulty).

Whenever I try to ping a website in name form (like > www.qnx.com> ) I get
unknown host errors. If I start up a unit and run dhcp.client, I can ping
it without difficulty. I’ve then KEPT the copy of resolv.conf generated by
dhcp.client and restarted to run statically. I still can’t ping the
addresses.

My startup for my network stuff is:
Net &
Net.rtl &
Socket mymachine &
ifconfig en1 192.168.1.30 netmask 255.255.255.0 up

What else might I run to make sure I can gain access to the name servers?
(ie, resolv.conf is used, or some way to specify to some driver the address
of the DNS server so when I make name requests it will process them).

You probaly need defaultroute to get to your nameserver.
So run dhcp.client, make sure you can ping, and check
netstat -nr, remember the default route, and add:

route add default

-xtang