Two Laptop Bag
The moose likes Linux / UNIX and the fly likes Linux and Windows Networking Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Linux and Windows Networking" Watch "Linux and Windows Networking" New topic

Linux and Windows Networking

Mark Fletcher
Ranch Hand

Joined: Dec 08, 2001
Posts: 897
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:
I then configure the ethernet card on the linux box with the following:
IP Address:
Now my modem using the following DNS servers provided by my ISP in the dial up connection.
Primary DNS:
Secondary DNS:
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 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 Fletcher -
I had some Java certs, but they're too old now...
Frank Carver

Joined: Jan 07, 1999
Posts: 6920
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.

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
I agree. Here's the link:
subject: Linux and Windows Networking
It's not a secret anymore!