LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 08-08-2009, 10:58 AM   #1
bruceh
LQ Newbie
 
Registered: Aug 2006
Posts: 1

Rep: Reputation: 0
dns and dhcp server on lan - what's the correct setup?


I have a linksys router in gateway mode connected to the modem from my ISP. Just wanted to let a pc do dns and dhcp so that I could set a domain name and access my computers like "name.domainname" when on the lan. No need to access from outside. It seemed to work well for a few hours, when suddenly network became extremely slow. I noticed when I did ping from the dns/dhcp server I got "no buffer available" error, which leads me to that the server got too many requests or something. I have disabled dhcp on the router and have it forward UDP and TCP on port 53 to the dns/dhcp server. On the server I have its network interface use static IP. Rest of the pc's use dhcp.
Is this the correct way to do it?
 
Old 08-09-2009, 08:56 AM   #2
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
For a small home network, you might want to look at using dnsmasq. DNSMasq handles LAN addresses (from it's own hosts file) and can be configured as a DHCP server. Local IP domain requests are handled by dnsmasq and Internet domains are relayed to the ISP's DNS servers. You just need the dnsmasq server's address in the other hosts /etc/resolv.conf file.

At home, instead of using a DNS server, I assigned static IP addresses in my Linksys router, and then use a static /etc/hosts file on each computer. I did this so I don't have the IP addresses change on my computers. They all have static addresses even though they are using DHCP. I have a WINS entry in the router with the IP address of my desktop that has "wins support = yes" in smb.conf.
 
  


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
LXer: Howto setup DHCP Server and Dynamic DNS with BIND in Debian LXer Syndicated Linux News 0 07-27-2008 06:11 PM
DHCP/DNS Server Setup epicmove Linux - Networking 2 09-23-2007 04:45 PM
windows-style dns/dhcp server setup with dynamic updates fire.is.real Linux - Server 1 08-24-2007 12:00 AM
how to setup a solaris 8 dhcp server to do dynamic dns updates smiller71 Solaris / OpenSolaris 0 04-02-2004 03:16 PM
How do you make the ip masquerade server/dhcp server broadcast dns to lan cmisip Linux - Networking 6 01-25-2003 11:43 PM


All times are GMT -5. The time now is 02:28 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration