We should not offer a method to directly edit
/etc/hosts as this would require the web interface to have
root permissions while we’re constantly looking at reducing the permissions Pi-hole needs to have.
When we implement this feature, we could add an online editor for a separate hosts file that can then be owned by user
The question is what users want. You can already edit the leases on the settings page. Having a simple text fields does not help most users, in contrast, it may even confuse them.
We see this already with, e.g. dd-wrt and other custom router software offering direct access to configured comes via the web interface. Whilst you’d expect people running a custom firmware on their routers to have a sufficiently well working understanding, you’d maybe be surprised by the number of forum posts like “please help me, I did something, now my router is broken”.
With the new web interface that is currently under development, we will make many things more convenient and also a few things more easy to be added as we’re using state-of-the-art web technology. Stay tuned for interesting things to come or join us in making the next level of your Pi-hole experience!