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

Re: hostnames for dhcp clients with bind



Stefan Radomski wrote:
> Hi there,
> 
> I managed to set up a dhcp server to hand out ip addresses to clients,
> now I want these clients to get a hostname depending on their MAC
> address to be resolved by bind.
> 
> Has anyone successfully set up such a configuration and can give me a
> quick overview what needs to be done, or point me to some documentation
> on the internet?

What you want is dynDNS with ISC dhcpd3:
dhcp3-client - DHCP Client
dhcp3-common - Common files used by all the dhcp3* packages.
dhcp3-dev - API for accessing and modifying the DHCP server and client state
dhcp3-relay - DHCP Relay
dhcp3-server - DHCP server for automatic IP address assignment
It makes the DNS entries when a client registers with the DHCP server 
(either the client provides its name and the server accepts it or you have 
host directives with mac adresses that specify the name of the client:
host sdfg {
    hardware ethernet xx:xx:xx:xx:xx:xx;
    ddns-hostname "sdfg";
}
That even works with printers and bootp.

If you really want IP management with your bind server, use host statements 
in the dhcpd.conf. You can use hostnames instead of ip adresses there, too.
But then you have to configure the name at the client _and_ the server which 
defeats the point of it.

I even run such a setup (dynDNS) at home because it makes it absolutely easy 
to use and maintain :)

HS



Reply to: