Click to See Complete Forum and Search --> : Internet sharing - possibly Name servers???


McBoon
03-21-2002, 08:15 PM
Well I have my computers switched around now. I have RedHat 7.2 connected to both the net and LAN. and a windows box behind RedHat.

I was able to get the two networked and talking. I even got my windows box to talk to the external NIC on RedHat. I tried to use IPchains to get the windows box to connect to the net but with only little success. I got MSN messenger to work plus every other service i think.... I just can't use internet names.

I can access the www.yahoo.com (http://www.yahoo.com) page but the IP but not with the www.com (http://www.com) name. anyone know how to fix this?

Thanks ahead...


Oh and if anyone couldn't get this far just post and I might be able to help. ... if i had a clue what i did ;) that is.

what should I do to be able to fix this?

SuperHornet
03-21-2002, 08:43 PM
Hello,
Yes your problem is either the lack of or incorrect DNS servers.

Place the DNS server's IP address in the /etc/reslov.conf and in the windows TCP/IP setup, then give it a try.

[ 21 March 2002: Message edited by: SuperHornet ]

McBoon
03-22-2002, 01:04 AM
ell resolv.conf has the correct domain and name servers. I can connect through this computer (RedHat) but if I set the windows box to the same name servers, I get nothing.

Is there anything I might be missing?
From the windows computer, I can ping 64.58.76.229 (yahoo) but not www.yahoo.com. (http://www.yahoo.com.)
From this computer I can ping both.

friend621
03-23-2002, 02:08 AM
If I understand right, you are using your RH7.2 as a router. On the win machine, try giving the IP of the LAN card on the RH7.2 as the DNS server. Like if you have eth0 as the card seeing the internet with address of 34.87.465.98 (just random numbers) and assume your LAN ethernet (eth1?) has the IP of 192.168.0.1, then use this IP as the DNS server on your Win machine. This should work.

Hope this helps.

McBoon
03-23-2002, 03:48 AM
i think i've got it now. I wasn't sure if I allowed it with ipchains... I use iptables now and everything seems to work. Not to mention I have all the dns servers inside the settings on the windows machine.

waxmop
03-26-2002, 12:24 PM
Umm - can you start at the beginning? I've got a linux box with redhat 7.2 with a phone modem and an ethernet card(named "frank"), and then another box(named "joe") with redhat 7.2 with an ethernet card.

I'd like to share the my dialup connection on frank with joe. so that while i'm logged into joe, and frank is connected to my ISP, then i can reach the internet from joe.

It sounds like you were able to acheive this. How did you get it started?

Right now, I've assigned static IP addressed to the ethernet cards for frank and joe:

frank eth0: 192.168.1.1
joe eth0: 192.168.1.2

and frank's ppp0 interface gets a DHCP assigned address each time I call in to my isp. I'm able to ping frank from joe and vice versa. I'm have a hard time with the packet routing/IP masquerading step.

Any suggestions?

wax