farsonic / unifi-to-hosts-mapping

Log into UniFi controller and retrieve list of all known clients. Use this information to populate the /etc/hosts file with a mapping of IP/Username.
33 stars 11 forks source link

Should be possible to update hosts file within a pi-hole docker container #7

Closed ax42 closed 7 years ago

ax42 commented 7 years ago

Closed in #6 by allowing the user to choose which hosts file to edit

shanelord01 commented 4 years ago

I'm having this issue, and even if I set -f or --hostfile to local.list, I still get the "You need root permissions to write to /etc/hosts - skipping!" error.

I have the container set to high priveledge also.