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 07-21-2005, 08:40 PM   #1
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Rep: Reputation: 51
Some questions on DNS & DHCP on a LAN


I'm a bit of a newb to this part of administration...

So I have 20 or so new machines to hook up to my current network of 22 machines. Currently, everything has static ip with a hosts table on each machine for name resolution. For these new machines, I'd prefer to leave them using DHCP & have every other machine be able to see it by looking up it's name only. I'm guessing this requries a local DNS server, correct?

Does the thing that provides the IP also have to be the DNS server? Currently, my router supplies ips to anything that requests DHCP, but I can't have that be the DNS table for my local network (I think), so I need a DNS machine. Should I move the DHCP server to the machine that will eventually be my DNS machine? Should I make the DNS machine be my DNS for everyrhing, or just the LAN? If it's just the LAN, do I set the clients to look at the local DNS server *and* my router for name resolution, or do they all make the requests from my DNS server which then makes a request to the router?

Feel free to point me towards a good resource for this info if you don't feel like typing out a full answer.

Last edited by BrianK; 07-21-2005 at 08:42 PM.
 
Old 07-22-2005, 02:58 AM   #2
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
Talking

So I have 20 or so new machines to hook up to my current network of 22 machines. Currently, everything has static ip with a hosts table on each machine for name resolution. For these new machines, I'd prefer to leave them using DHCP & have every other machine be able to see it by looking up it's name only. I'm guessing this requries a local DNS server, correct?
YES

Does the thing<computer?> that provides the IP also have to be the DNS server?
No, you can have the DHCP server and DNS server as separate machines, but you can put them together to save some cash.

Should I move the DHCP server to the machine that will eventually be my DNS machine?
Since I don't know what type of router your using, I'd say yes, move the DHCP to the new computer that is going to be the DNS server.

Should I make the DNS machine be my DNS for everyrhing, or just the LAN?
Depends on what you are doing. For simplicity, use a local DNS server for the LAN and if your website is being hosted, let them take care of the DNS for web/ftp traffic to the website.

If it's just the LAN, do I set the clients to look at the local DNS server *and* my router for name resolution, or do they all make the requests from my DNS server which then makes a request to the router? The router have nothing to do with name resolution, so your client machines aren't going to be requesting anything from it. Routers only play traffic copy and pass packets based on the ARP table (IP/MAC addresses).

<edit> I'm two posts away from 1000 < /edit>

Last edited by musicman_ace; 07-22-2005 at 02:59 AM.
 
Old 07-23-2005, 11:25 AM   #3
mpeg4codec
Member
 
Registered: Jul 2005
Distribution: Debian, Gentoo, self-built [not LFS]
Posts: 109

Rep: Reputation: 15
ISC dhcpd and Bind 9 can be paired together to do some really cool things. For instance, you can have dhcpd hand out IP addresses and update bind using its ddns updates mechanism. However, configuring both of those can be monolithic.

Dnsmasq, on the other hand, supports assigning IP addresses and running as a forwarding nameserver; it also serves hostnames from /etc/hosts. This is a nice alternative to having hosts on every single machine. You would still need to keep the static IPs, in this case.

If you're interested in how to do the first, know that it's a lot of work. Plus, Bind 9 is a memory PIG. However, if you still want to, reply away.
 
Old 07-26-2005, 03:33 PM   #4
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Original Poster
Rep: Reputation: 51
Thanks for the advice, guys.
 
  


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
Couple Questions (dhcp, dns, vpn, *ldap*, ...) Lostboys Linux - Networking 1 10-06-2004 03:01 PM
intel pro/wireless 2100 -config questions + dhcp/dns some_cs_student Linux - Wireless Networking 1 05-01-2004 05:31 PM
DNS & DHCP with LDAP on Red HAT 9 DARSHAND Red Hat 0 01-21-2004 02:08 AM
How do you make the ip masquerade server/dhcp server broadcast dns to lan cmisip Linux - Networking 6 01-25-2003 10:43 PM
Dns & Dhcp dguy Linux - Networking 3 01-25-2002 07:54 AM


All times are GMT -5. The time now is 07:09 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