Skip to content

Add Python script to retroactively update domain/IP lists #39

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

Merged

Conversation

kuroji-fusky
Copy link
Contributor

@kuroji-fusky kuroji-fusky commented May 21, 2025

Fixes #37; this adds a Python file to add and sync across the hosts, dnsmasq, and the PiHole files, and remove any duplicates if present

Changes

  • Fix indentation on dnsmasq
  • Add a PowerShell script to add them to the hosts file and create a hosts.bak as a backup
  • Dedupe logic
  • Sort the list in alphabetical order
  • Add an issue template for users to file for new domains and possibly GitHub workflow to create a PR from the IP addresses/domains specified
  • Add a workflow on every push and execute python lists.py --remove-duplicates

@kuroji-fusky kuroji-fusky changed the title Kuro patch Add Python script to retroactively update domain/IP lists May 21, 2025
This is completely optional but I added it for the sake of consistency
@Ruddernation-Designs Ruddernation-Designs marked this pull request as ready for review May 22, 2025 10:05
@Ruddernation-Designs Ruddernation-Designs merged commit 6ff766e into Ruddernation-Designs:master May 22, 2025
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

Successfully merging this pull request may close these issues.

Automate a script for adding/deduping domain listings?
2 participants