Re: [SLUG] DHCP or BIND

From: Paul M Foster (paulf@quillandmouse.com)
Date: Thu Feb 14 2002 - 00:46:18 EST


On Wed, Feb 13, 2002 at 10:39:57PM -0500, Jason Copenhaver wrote:

>
> On Wed, 13 Feb 2002, Paul M Foster wrote:
>
> > I've never really untangled DNS for myself, but I'm working on
> > understanding it right now. One question comes up that I don't seem to
> > have an answer for. I know there's a dhcpcd, which grabs an IP address
> > from a nameserver. And I know there's BIND, which serves up IP
> > addresses. I thought there was a DHCP server daemon as well, which
> > would perform the function of serving up IP addresses on small networks.
> > Is that not the case, or do I need to run BIND to hand out IP addresses?
> >
> IP addresses are hadned out by a DHCP server.. usually dhcpd .. BIND
> handles the name -> ip address resolution.. it is a DNS server..for a
> small home network (mine has 3 machines) I use a DHCP server.. and then
> just host files.. because the IP addresses of each machine rarely change..
>

So if machine alfa asked BIND for an IP address for itself, it couldn't
actually happen because alfa doesn't have a routable IP address to begin
with? So alfa has to run dhcpcd to get its IP address, and the IP
address is handed out by the server running dhcpd. The dhcpd server
would have a list of IP addresses that it could dole out, which it would
give to alfa's dhcpcd when asked for an IP. Is that right?

But if alfa wanted to know bravo's address (another machine on the
network), it could use BIND for that? Likewise, presumably BIND would
hand off requests for full internet IPs and respond back when alfa
wanted to know the IP of Red Hat's host? (This last part isn't exactly
clear from what I've read about BIND.)

Right now, both my networks consist of no more than four machines, and I
use a hosts file on each machine. /etc/resolv.conf forces requests for
other (internet) IPs to be handed off to my ISP's nameservers. But I'm
thinking about broadening my horizons by getting rid of all the
individual hosts files and running daemons (dhcp and/or BIND/named) to
perform all the nameserver/IP assigning stuff. So that's why these
questions.

Paul



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 16:05:03 EDT