This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
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: 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 frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
 
 
subject: Linux and Windows Networking
 
Similar Threads
Apache not working when connected to Wireless LAN
How to connect internet on RHEL 5.1?
Assigning IP Address to network card in WinXP... HELP!
RMI problem with Localhost
NIC Card Problem