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 08-08-2009, 09: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, 07:56 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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



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 05:11 PM
DHCP/DNS Server Setup epicmove Linux - Networking 2 09-23-2007 03:45 PM
windows-style dns/dhcp server setup with dynamic updates fire.is.real Linux - Server 1 08-23-2007 11:00 PM
how to setup a solaris 8 dhcp server to do dynamic dns updates smiller71 Solaris / OpenSolaris 0 04-02-2004 02:16 PM
How do you make the ip masquerade server/dhcp server broadcast dns to lan cmisip Linux - Networking 6 01-25-2003 10:43 PM

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

All times are GMT -5. The time now is 08:31 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
Open Source Consulting | Domain Registration