Hi Again folks.

Something I still don't understand that I need clarified, how exactly does DNS 
interact 
with ipmasq. I have done a lot of reading (how-to's, faq's, books on dns, ipmasq etc) 
and 
am still confused

here is the situation

I build a samba file server for my Windows Network (95,98 and NT), I use myhome.com 
as my domain and assign addresses in the 192.168.1.xxx class. I put all the names and 
ip addresses of all the computers in the /etc/hosts file on the samba server. I point 
all 
the other machines to the samba box for dns services and to make doubly sure I fill 
the 
host.sam file on the windows boxes with the same info as in the the linux /etc/hosts. 
I 
am not running bind or any other dns software.

2 machines used for this test

win98box.myhome.com (192.1689.1.6)
sambabox.myhome.com (192.168.1.2)

One day I get ADSL or Cable service and decide I want to use this samba box to dish 
out internet services to all my windows boxes. I recompile the kernel to include all 
the 
stuff necessary for ipmasq, make sure both ethernet cards are setup correctly and that 
one of the cards (in this case eth1) gets assigned the appropriate info via dhcp from 
the 
adsl service. So far so good. I make sure to setup all windows boxes to use the linux 
boxes eth0 (internal network) as it's default gateway. The only rules I use for 
ipfwadm are
ipfwadm -F -p deny
ipfwadm -F -a m -S192.168.1.0/24 -D 0.0.0.0/0

If sit down at the ipfwadm console, I can happily ping and get out and about on the 
net. I 
can ping the window's machines from the linux box and ping the linux box from the 
windows machines when I use the ipaddress.  I can even ping eth1 from the windows 
boxes if I type its dhcp assigned address in

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. 
If i run the same 2 pings (using the names) on the linux machine, all works as it 
should.
If I then go back to the the win98 box and ping a known site on the net using its ip 
address I instantly get back request timed out, if I then use the name of this site, 
it sits 
there for about a minute or 2 then comes back with unknown host.

Looking in the /etc/resolv.conf file I see the dns server info as assigned by dhcp.

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.....

So how do I get this DNS thing sorted out? I am pretty sure after all the reading I've 
done 
that the problem is DNS related, but I haven't a clue how to solve this.


TIA

Harondel J. Sibble
Sibble Computer Consulting
email >> [EMAIL PROTECTED]
website >> http://www.pdscc.com
pgp key >> available on request or from keyserver
(604) 739-3709 (voice/fax)
(604) 686-2253 (pager)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For daily digest info, email [EMAIL PROTECTED]

Reply via email to