ClearFoundation Tracker - ClearOS
View Issue Details
0010891ClearOSapp-dhcp - DHCP Serverpublic2016-10-10 10:042020-03-10 06:32
user2 
 
normalfeaturehave not tried
closedsuspended 
 
 
0010891: Add hook to hosts file for static leases
From the forums (first comment) - https://www.clearos.com/clearfoundation/social/community/extra-column-for-static-leases-dhcp-server-app [^]

It would also be nice for the static leases to be able to populate the hosts file if you give the lease a name.
No tags attached.
Issue History
2016-10-10 10:04user2New Issue
2016-10-10 10:04user2Issue generated from: 0010881
2016-10-10 10:05user2Statusnew => confirmed
2017-03-21 12:06NickHNote Added: 0005201
2017-10-06 07:36NickHNote Added: 0006621
2017-10-18 12:19NickHNote Added: 0006681
2020-03-10 06:32NickHNote Added: 0013481
2020-03-10 06:32NickHStatusconfirmed => closed
2020-03-10 06:32NickHResolutionopen => suspended

Notes
(0005201)
NickH   
2017-03-21 12:06   
Or perhaps, rather than populate the hosts file, add a configuration directive --dhcp-host to dnsmasq.conf or one of its subfiles. This looks like you can set the MAC, IP address and host name in one line, which could be in a separate sub-file. This would replace /etc/ethers combined with the hosts file.
(0006621)
NickH   
2017-10-06 07:36   
From the man page, it would be better to use a subfile specified by --dhcp-hostsfile=<path> as this is reread when a SIGHUP is issued avoiding the need to reload dnsmasq when changes are made.

This change could then be integrated into the Network Map as you would then have a link between MAC and Device Name.
(0006681)
NickH   
2017-10-18 12:19   
Duplicate of https://tracker.clearos.com/view.php?id=1955? [^]
(0013481)
NickH   
2020-03-10 06:32   
Migrated to https://gitlab.com/clearos/clearfoundation/app-dhcp/-/issues/15 [^]