use-host-decl-names AND get-lease-hostnames

Tarik Gasmi isnogoud at web.de
Tue Nov 27 12:44:33 UTC 2007


Hi,

i wanted to have the following configuration

1. globally names in host-declaration are used for fix known clients

***snip***
use-host-decl-names on;

host foo {
  hwaddress ethernet <foomac>;
  fixed-address foo.my-domain.net;
}
***snap***

2. in dynamic Pools in Subnets:
dynamic clients should get their hostname by doing a DNS Lookup, so
switch get-lease-hostnames on ...

***snip***
subnet 10.8.18.0 netmask 255.255.255.0 {
  option routers 10.8.18.254;
  option broadcast-address 10.8.18.255;
  option domain-name "some-domain";
  default-lease-time 600;
  max-lease-time 7200;
  get-lease-hostnames on;
  pool {
    failover peer "dhcp-failover";
    deny dynamic bootp clients;
    range 10.8.18.100 10.8.18.200;
    allow unknown-clients;
    next-server 132.230.4.1;
    filename "/tftpboot/pxelinux.0";
  }
}
***snap***

but unknown dynamic clients don't do a DNS Lookup to get their hostname


thank you in advance and best regards,
tarik


More information about the dhcp-users mailing list