Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mapping to custom.list for Pi-Hole 5.0 #9

Open
shanelord01 opened this issue May 3, 2020 · 1 comment
Open

Mapping to custom.list for Pi-Hole 5.0 #9

shanelord01 opened this issue May 3, 2020 · 1 comment

Comments

@shanelord01
Copy link

I've adjusted the python-hosts "hosts.py" on line 203 & 211 from:

"{0}\t{1}\n".format(
to
"{0} {1}\n".format(

I then use sudo python /home/pi/client-mapping.py -f /etc/pihole/custom.list -c ControllerIP -u Username -p Password

to update the custom.list file instead of the /etc/hosts file. If needed I can see and edit in the Web UI now (although any changes will get overwritten upon each cron job).

Not sure if there is a way to update the main client-mapping.py script to adjust for a space instead of a tab, rather than having to edit the hosts.py

Thanks,
Shane.

@farsonic
Copy link
Owner

Are you able to make the required change and submit a pull request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants