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

Glenn Satchell Glenn.Satchell at uniq.com.au
Tue Nov 27 12:58:08 UTC 2007


You could try putting get-lease-hostnames inside the pool perhaps? Do
you have proper reverse lookup DNS zones? for example, does
'nslookup 100.18.8.10.in-addr.arpa' return the expected hostname?

You may need to put the use-host-decl-names inside a group with all
the host statements, to remove any potential conflict, eg:

group {
	use-host-decl-names on;
	
	host foo {
	  hwaddress ethernet <foomac>;
	  fixed-address foo.my-domain.net;
	}
	host ... {
	}
}

regards,
-glenn

>Date: Tue, 27 Nov 2007 13:44:33 +0100
>From: Tarik Gasmi <isnogoud at web.de>
>To: dhcp-users at isc.org
>Subject: use-host-decl-names AND get-lease-hostnames
>
>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