[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Configuring dhcp3 to send hostname mappings to clients



On Mon, Mar 24, 2008 at 01:45:55PM +0100, Joost Witteveen wrote:
> On 23/03/2008, Reid Priedhorsky <reid@reidster.net> wrote:
> > Dear all,
> >
> >  My /etc/hosts contains a handful of mappings useful on my internal subnet:
> >
> >  10.0.0.2      reidster.net         reidster
> >  10.0.0.4      convex.reidster.net  convex
> >  10.0.0.4      toys.reidster.net    toys.reidster
> >  10.0.0.4      yabman.reidster.net  yabman
> >
> >  The same box is also a DHCP server, using dhcp3 for a couple of laptops
> >  which are transient on the network. I would like to pass the mappings
> >  above on to the laptops using dhcp3. Is this possible?
> 
> I don't think it is.
> 
> What I would do is install a DNS server (eg bind9), and in
> /etc/dhcpd.conf put a line like:
>   option domain-name-servers 10.0.0.4;
> and then configure the bind to serve the mappings you want.
> (you'll need seperate files for reverse mappings)
> 

You could install dnsmasq (a caching dns server and dhcp server) which
would serve the /etc/hosts contents and then the other boxes (including
the laptops) would only have to know that their nameserver is your box.

Doug.


Reply to: