Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Linux and Windows Networking

 
Mark Fletcher
Ranch Hand
Posts: 897
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Friends,
Im having an issue networking Linux and Windows and I was wondering if you could help me out?
Ok, Ive got two boxes at home, a windows box (running Windows XP Professional) and a linux box (running SuSE 7.3 Professional).
The Windows and Linux boxes are connected using ethernet cards. The windows box has a modem which is used for connection to the internet.
My problem lies with nameserver resolution on the Linux box. I want the Linux box to be able to connect to the internet using the modem on the windows box. To this end I switched on Internet Connection Sharing on the windows box. This assigns the following to the ethernet card on the windows PC:
IP Address: 192.168.0.1
Netmask: 255.255.255.0
I then configure the ethernet card on the linux box with the following:
IP Address: 192.168.0.2
Netmask: 255.255.255.0
Gateway 192.168.0.1
Now my modem using the following DNS servers provided by my ISP in the dial up connection.
Primary DNS: 158.143.1.58
Secondary DNS: 158.143.1.43
With this setup I can do the following:
1)The windows box can connect to the internet using the modem and can resolve ip addresses using the DNS ip addresses.
2)The windows box can ping the linux box.
3)The linux box can ping the windows box.
4)The linux box can connect to the internet via the windows box by ip address. ie I can ping the DNS ip's
5)The linux box cannot resolve ip addresses using the DNS ip addresses. ie I cannot type http://www.suse.com in a web browser running on the linux box and get a page displayed. However if I type in the http://<ip> address> of the site I can get the page to display.
I tried reconfiguring the Linux boxes ethernet card by adding the two DNS IP's but still no result.
Can anyone offer any advice?
Best Regards,
Mark
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you added a line

to the file /etc/resolv.conf to tell your Linux system which DNS to use ?
See "man resolv.conf" for more details and options.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic