LinuxQuestions.org
Review your favorite Linux distribution.
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 07-15-2004, 02:00 PM   #1
shyam_d_sundar
Member
 
Registered: Mar 2004
Posts: 43

Rep: Reputation: 15
urgent:: internet connection sharing: DNS server not working


Hi,

I am trying to put my linux box as a server for sharing inet connections (since win ICS sucks)

I am having two ethernet adapters : eth0->internet, eth1->lan

Since I use mandrake 10, it comes with a handy tool that configures theinternet connection sharing.

Now, I have setup the connection such that my comp can connect to internet thro eth0 and can ping the clients in the lan thro eth1. Also, the clients can ping an external ip address (eg. google) thro my machine.

But, if I ping "www.google.com", it doesnt work. I am afraid it is the problem with DNS server. but, i dont know what and where to do anything.

Please help me in this.

Regards,
Shyam
 
Old 07-15-2004, 11:43 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
Your clients need to know its gateway and dns servers. You can do this in 2 ways. First, but hard to maintain is to configure your clients giving the dns address provided by your ISP. If you have windows clients, go to network neighborhood, choose nic card->tcpip->properties and configure the "dns tab". If your client is linux or other kind of *nix, edit "/etc/resolv.conf", inserting one line with "nameserver xxx.xxx.xxx.xxx" for each dns server you have.
The second way is to setup a dns service in you linux server, looking for your ISP and serving your network. This way all you have to do is configure your clients, telling its dns server is the ip of your server once. If you have to change your dns server you have only to update your server.
I suggest you to install the software "dnsmasq" which is too easy to configure in your server.
As a refinement, you may install dhcpd in your server to distribute ip addresses to your clients and eliminate the need to configure each client. The dhcpd will give the ip address to the client and configure the dns and gateway.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
trying to setup linux firewal/dhcp server but its not sharing the internet connection abefroman Linux - Networking 4 05-01-2005 04:39 AM
Internet connection sharing -DNS problem reetep Linux - Networking 2 03-23-2004 10:21 AM
How Can I Make Internet Connection Sharing Server With RedHat Linux 7.3? SurfTurtle Linux - Networking 6 10-20-2002 01:01 AM
Sharing my Internet Connection to W2K Server dwynter Linux - Networking 6 06-24-2002 07:51 AM
Sharing an internet connection with a Linux client through a 2000 server gateway thuan Linux - Networking 1 08-02-2001 01:55 PM

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

All times are GMT -5. The time now is 02:37 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration