Sharing internet from Mac to Linux(PC) - Some sort of DNS problem?
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.