Adding reserved host to the dns (bind)

Glenn Satchell glenn.satchell at
Wed Oct 27 15:55:02 UTC 2010

On 10/28/10 02:34, Nicolas Michel wrote:
> Hello,
> I'm using dhcp3 on Debian Lenny (the apt package).
> In my dhcp server config file, I set some reserved address by MAC
> address for some hosts. For doing it, I need to set the hostname.
> host printer-sec-NB {
> hardware ethernet 00:23:7d:7e:da:79;
> fixed-address;
> }
> So I wanted to add to bind these hostnames (in my example
> "printer-sec-NB which FQDN should be
> zone is managed and well configured in my bind9 server.
> I found on the net the way to configure ddns but this is not what I want
> to do : I don't want to retrieve the hostname of the computer itself but
> the one I set myself in the reservation.
> Is it possible? If it is can you give me some hints or a tuto?
> Thank you,
> nm

Do yo mean something like this?

host printer-sec-NB {
    hardware ethernet 00:23:7d:7e:da:79;
    option hostname "printer-sec-NB";

The same thing can be done by setting:

use-host-decl-names true;

which will then use the host label as the hostname.

This is in the dhcpd.conf man page. All options are listed in 
dhcp-options man page.

Glenn Satchell                            |  Miss 9: What do you
Uniq Advances Pty Ltd, Sydney Australia   |  do at work Dad?
mailto:glenn.satchell at         |  Miss 6: He just tel:0409-458-580   |  types random stuff.

More information about the dhcp-users mailing list