assigning client-hostname

Ray Phillips r.phillips at jkmrc.com
Fri Jun 2 01:47:28 UTC 2006


I've been able to assign a ddns-hostname to clients which don't 
provide one using

option server.ddns-hostname = pick-first-value (
   option fqdn.hostname,
   option host-name,
   concat (
     "mac-",
     suffix (concat ("0", binary-to-ascii (16, 8, "",
       substring (hardware, 4, 1))),2), "-",
     suffix (concat ("0", binary-to-ascii (16, 8, "",
       substring (hardware, 5, 1))),2), "-",
     suffix (concat ("0", binary-to-ascii (16, 8, "",
       substring (hardware, 6, 1))),2)
   )
);

However, there's no client-hostname line in dhcpd.leases for such 
clients so dhcpstatus doesn't report one, which is inconvenient.

Is it possible to assign a client-hostname value?


Ray


More information about the dhcp-users mailing list