Chen Zhigao <(E-Mail Removed)> wrote:
> Hi folks,
> I am building an embedded Linux settop box and try to install
> networking packages as few as possible. I have installed the netbase,
> netkit-inetd, netkit-ping and portmap packages from MontaVista.
> The settop box, with the static IP of 10.10.10.100, is connected to my
> desktop PC through a cross cable, which servers as a router to forward
> the packages from/to the set-top box to/from the our LAN. The IP of my
> desktop PC are 10.10.10.1 and 192.168.0.151. The LAN gateway's IP is
> 192.168.0.1.
> Since my desktop PC use the LAN gateway as DNS server, I use it as the
> DNS server for the set-top box also. The contents of the configuration
> files on the box are:
> # /etc/resolv.conf
> search localdomain
> nameserver 192.168.0.1
> # /etc/host.conf
> order hosts,bind
> multi on
> However, the set-top box can not ping any host on the Internet by DNS
> name, although it can them ping by IP address. The error says "ping:
> unknown host xxx.xxx.xx". Actually I can not capture any DNS request
> sent out of the set-top box.
> But nslookup works fine. And I am sure the LAN gateway allows the box
> to request to resolve DNS, because nslookup tells me it use the gateway
> as DNS server. I am still not able to ping a host by DNS even though I
> install nslookup.
Try adding the host route
route add 192.168.0.1 gw 10.10.10.1
on the set-top and the host route
route add 10.10.10.100 gw 192.168.0.151
to the gateway.
--
Clifford Kite Email: "echo
xvgr_yvahk-(E-Mail Removed)|rot13"