LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-11-2005, 03:47 PM   #1
lloyd_smart
LQ Newbie
 
Registered: Dec 2003
Posts: 24

Rep: Reputation: 15
Question Sharing internet from Mac to Linux(PC) - Some sort of DNS problem?


Hi there. I am having problems sharing my internet connection between my two computers. Allow me to explain:

I have an Apple PowerMac G4 running Mac OS X 10.3.8 (soon to be 10.3.9 when my download finishes), and have it connected to the internet via it's built-in 56k modem.

This Mac is linked to my PC running SUSE Linux Professional 9.2 via an Ethernet crossover cable.

I've given each a static IP address, and they can access each other fine.

My problem is getting the PC to access websites in a browser properly. I can get at sites if I enter their IP address in the address bar in Firefox (or any other browser on SUSE), but not if I enter their "proper" name. I'm naturally inclined to assume this is something to do with DNS, but I don't know what, as I don't know much about how DNS works.

Any help with this would be greately appreciated.
 
Old 05-11-2005, 04:50 PM   #2
osvaldomarques
Member
 
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519

Rep: Reputation: 34
Hi lloyd_smart,

You are right. Your problem is with dns. You have to find the proper dns address on your Mac and copy it to your Suse. As the Mac is a BSD like, all you need is to copy "/etc/resolv.conf" from your Mac, which I suppose exists, to your Suse.

The best would be to setup a dns server on the Mac and point it as the dns resolver for Suse, as from time to time your ISP can change the ip addresses and you will get stuck with it on Suse again.

Osvaldo.
 
Old 05-11-2005, 04:52 PM   #3
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
so you are sharing your internet trought the Mac OS, right?
Make sure what you have in /etc/resolv.conf is your ISP DNS server... otherwise, it won't resolve name.
 
Old 05-18-2005, 11:51 AM   #4
lloyd_smart
LQ Newbie
 
Registered: Dec 2003
Posts: 24

Original Poster
Rep: Reputation: 15
Thanks for your help.

Quote:
Originally posted by osvaldomarques
setup a dns server on the Mac
Any idea how I can do this on Mac OS X?
 
Old 05-18-2005, 12:36 PM   #5
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
you dont have to use the most complex solution... why don't you just edit your resolv.conf? ISP DNS shouldn't change very often.
 
Old 05-18-2005, 12:50 PM   #6
osvaldomarques
Member
 
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519

Rep: Reputation: 34
Half_Elf,

You are right. ISP DNS doesn't change very often but they change. In 6 months or one year, suddenly the internet sharing will hang. And you won't remember because, you will think that "yesterday" or "this morning" it worked and now it doesn't. You will check all the system because you are sure the DNS is Ok!

If you put an script in rc.local to always copy /etc/resolv.conf from the MAC to the linux, you will never have this problem, assuming the mac has the DNS updated at every connection.

Cheers,

Osvaldo.
 
Old 05-18-2005, 03:35 PM   #7
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
actually my ISP has the same namserver since 3 years...
 
Old 05-18-2005, 04:43 PM   #8
asouldja
LQ Newbie
 
Registered: May 2005
Posts: 11

Rep: Reputation: 0
an ISP wouldn't just change it's dns's IP's it would make no sense, even if they did everyone would be alerted by a letter or at least an email for home users.

They could add a new dns perhaps, but take one away, nah.
 
Old 05-18-2005, 05:08 PM   #9
lloyd_smart
LQ Newbie
 
Registered: Dec 2003
Posts: 24

Original Poster
Rep: Reputation: 15
Ok, thanks guys. I copied the resolv.conf, and it works like a charm.

Thanks!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
internet connection sharing, sort of brucedjones Linux - Networking 16 05-27-2004 01:18 PM
Internet connection sharing -DNS problem reetep Linux - Networking 2 03-23-2004 10:21 AM
Mac OS X Internet Sharing -- DNS Issues? marcheikens Linux - Networking 5 01-20-2004 08:37 PM
Internet sharing, DNS problem dominik81 Linux - Networking 13 10-01-2003 05:28 PM
Internet sharing via linux box on ASDL problem RIKUS Linux - Networking 1 08-20-2003 07:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration