• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Linux and Windows Networking

 
Ranch Hand
Posts: 897
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
You get good luck from rubbing the belly of a tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic