ok, lets try and get this sorted out.

> host.sam file on the windows boxes with the same info as in the the linux 
>/etc/hosts. I 

afaik, .sam stands for "sample" - rename the file to just hosts

> If I try using the names of the machines with ping, it fails, ie if I type 
> ping sambabox from the win98 box, it fails with host unknown, if I type ping 
>192.168.1.2, 
> the ping works fine. Then if I type the ping win98box, the ping works fine just as 
>it does if 
> I type ping 192.168.1.6. 

thats because windows isn't looking in your hosts.sam file, but instead
it's looking for a hosts file.the reason you are able to use the machine's
own name to ping itself is because it's in windows' tcp/ip configuration
(under dns i believe)

> So.... after all the, my main question is how does my windows machine really know 
> what dns to use? If it goes by the the info in the hosts.sam file, as far as it 
>knows there 
> are only a few machines on the 192.168.1.xxx domain, if it goes by info in 
>/etc/hosts file 
> on linux box, same situation, now if it goes via the dns servers as listed in 
> /etc/resolv.conf that seems like it would work.  But fowarding doesn't work from the 
> win98 box. trying to ping anyting on the net or surf teh web, doesn't work.  The 
>fact that I 
> can ping the external nic on the samba/router box from the win98box by using its 
>dhcp 
> assigned adress really confuses me as it says to me that forwarding is working.....

it goes by c:\windows\hosts first, then if it can't look up the name there
it will try to connect to the dns server as listed in your tcp/ip
configuration in control panel. (that would normally be your isp's dns)

if forwarding is indeed compiled into your kernel (is it?), then you
should check to see whether 'cat /proc/sys/net/ipv4/ip_forward' returns 1.
if it doesn't, try 'echo 1 > /proc/sys/net/ipv4/ip_forward', if it works 
you'll have to put that line in one of your rc scripts.

let us know if this works for you.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For daily digest info, email [EMAIL PROTECTED]

Reply via email to