OpenWrt Forum Archive

Topic: Luci: Adding static DHCP leases to /etc/hosts automatically?

The content of this topic has been archived on 22 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi everyone,

I'm trying to provide a simple way for non-command-line-people to add new machines to our network.

I noticed that, if I enter a dynamic DHCP lease in the web GUI (Luci), the name of the new machine is not made available to the DNS server. Do you have any suggestions how to achieve this?

Basically, whenever the web GUI enters a static lease line into /etc/config/dhcp, I'd like to have the IP and hostname entered into /etc/hosts automatically so dnsmasq will resolve the hostname immediately.

Thanks a lot!

Same problem here, did you find a solution?

Currently, I know of no way to achieve this. Unfortunately, in the next months, I won't have time to think about a tool to do this, but it would seem pretty easy to implement.

The discussion might have continued from here.