File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Linux / UNIX and the fly likes Linux and Windows Networking Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Reply Bookmark "Linux and Windows Networking" Watch "Linux and Windows Networking" New topic
Author

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


Mark Fletcher - http://www.markfletcher.org/blog
I had some Java certs, but they're too old now...
Frank Carver
Sheriff

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


A Convergent Visionary ~ Frank's Punchbarrel Blog ~ LinkedIn profile
 
 
subject: Linux and Windows Networking
 
Threads others viewed
Assigning IP Address to network card in WinXP... HELP!
NIC Card Problem
RMI problem with Localhost
Apache not working when connected to Wireless LAN
How to connect internet on RHEL 5.1?
MyEclipse, The Clear Choice

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture