static clients: how log hostnames and create lease entries?

Simon Hobson dhcp1 at thehobsons.co.uk
Sat Dec 26 08:49:11 UTC 2009


Frantisek Hanzlik wrote:

>I there some way how, for host declarations with static addresses, do:
>
>1) log client hostname (which client sent in DHCPREQUEST or DHCPDISCOVER
>as option 12 ) ?
>
>2) so that they appear in lease file ?

I don't think so.

However, if you converted to use reserved leases then the clients get 
'real' leases which go through the normal lifecycle, appear in the 
leases file, and get DNS updates/deletes etc - the only difference 
from a normal lease being that a reserved lease will never be 
re-allocated to another client. I think you need version 4 for this 
functionality, and I don't know how well it's documented. I believe 
you need to manually add "reserved" as a keyword in an existing lease 
(or create a new skeleton lease with this) to uset he feature - and 
of course, that means stopping the server while you edit the leases 
file.

-- 
Simon Hobson

Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed
author Gladys Hobson. Novels - poetry - short stories - ideal as
Christmas stocking fillers. Some available as e-books.



More information about the dhcp-users mailing list