LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-24-2006, 12:49 PM   #1
davepass
LQ Newbie
 
Registered: Feb 2006
Posts: 3

Rep: Reputation: 0
simple home LAN - DNS and DHCP


Greetings,

I currently have a small network of WinXP, Win2k and Linux (Debian) desktops and/or latops. The desktops have static IPs and the laptops dynamic. They all connect to a linksys router (which I believe assigns the dynamic IPs, correct?) and connect to the internet through a broadband cable connection.

Problem 1:
I can only access shares on the windows boxes through the IP address, not by the computer's name. This obviously becomes a problem when trying to access files on one of the laptops with a dynamic IP.

Problem 2:
One of the Linux boxes runs Apache and functions primarily as a web server. Since I am running several virtual hosts from the server, I need to be able to make requests to the server by host and domain names rather than by IP address. For example:

dev1.myserver.mydomain.com
dev2.myserver.mydomain.com

rather than

192.168.1.161/...

I am currently acheiving this by adding new entries to each computer's hosts file each time a new virtual host is added. This has its obvious drawbacks...


So what I am looking for is a way to have one of the machines (most likely a Linux one) act as a DNS server that will route requests made by name rather than IP (either for files or web content) to the correct machine. I'm assuming that this server would then take over the responsibility of assigning dynamic IPs as well?

I have looked into dnsmasq and bind9 for Linux but being very new to all this, I'm not certain that either of these will do what I need.

Am I biting off more than a noob con chew? or is there a direction someone can point me in that will achieve my objectives?
 
Old 02-24-2006, 01:55 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,373

Rep: Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962
personally i'd really suggest dnsmasq, as it's simple and integrates dhcp and dns on small networks. you can certainly accomplsh the same thng with dhcpd and bind, but they are probably on the heavy side for your needs. so stop the router dishing out dhcp, and set up the linux box with a static address, and start dishing out dhcp from said box. as one of the options you then set the dns server as the linux box too. you would also set name servers for internet directly on the linux box (dnsmasq will find these and relay requests onwards if the request is not a local machine. you can either set the router as the dns server for the linux box (and NOT for anyone else, other than as a fallback maybe) or take the name servers the router is using as use them in /etc/resolv.conf.

dnsmasq is seriously easy and does a great job of basic dns and dhcp.
 
  


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
Failing to assign DNS servers to lan in DHCP Samhein Linux - Networking 3 01-25-2006 09:56 AM
Some questions on DNS & DHCP on a LAN BrianK Linux - Networking 3 07-26-2005 03:33 PM
How do I make a simple File server for my home LAN? cpaumelle Linux - Newbie 1 07-23-2004 07:19 AM
help getting simple PPP (no LAN) DNS working johnMG Slackware 2 04-19-2004 07:55 PM
Simple Home LAN has Win2K problems geokor Linux - Newbie 1 04-24-2002 06:51 AM


All times are GMT -5. The time now is 07:42 AM.

Main Menu
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